Found a case where the queue's membercount is off. It does not take into account dynamic members on a reload.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@81010 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2007-08-27 14:55:44 +00:00
parent 968be2def2
commit fe5489eead

View File

@@ -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);
}
}