[asterisk-commits] mmichelson: branch 1.4 r81010 - /branches/1.4/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Aug 27 09:55:45 CDT 2007
Author: mmichelson
Date: Mon Aug 27 09:55:44 2007
New Revision: 81010
URL: http://svn.digium.com/view/asterisk?view=rev&rev=81010
Log:
Found a case where the queue's membercount is off. It does not take into account dynamic members on a reload.
Modified:
branches/1.4/apps/app_queue.c
Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=81010&r1=81009&r2=81010
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Mon Aug 27 09:55:44 2007
@@ -3926,8 +3926,11 @@
ast_log(LOG_DEBUG, "XXX Leaking a little memory :( XXX\n");
} else {
ast_mutex_lock(&q->lock);
- for (cur = q->members; cur; cur = cur->next)
+ for (cur = q->members; cur; cur = cur->next) {
+ if(cur->dynamic)
+ q->membercount++;
cur->status = ast_device_state(cur->interface);
+ }
ast_mutex_unlock(&q->lock);
}
}
More information about the asterisk-commits
mailing list