diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-27 14:55:44 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-27 14:55:44 +0000 |
commit | 94f24352c59a328f45fd0bad073d6db60f60bec4 (patch) | |
tree | 7fd6c41a0defcd6f55ed9bb2d326848c7f09cdf3 /apps | |
parent | e24081803b6e0e9f98d5c1c04f2e3ce137e689dd (diff) |
Found a case where the queue's membercount is off. It does not take into account dynamic members on a reload.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@81010 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index 7b3538d19..298fab19e 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3926,8 +3926,11 @@ static int reload_queues(void) 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); } } |