aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-23 12:04:14 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-23 12:04:14 +0000
commit436baf6bae396e8a257793c23a97502d5b4f0588 (patch)
treea6f22e8681a3270daa75d590721891a1b192b98c
parente6d88c38fc8c044fe9cb0a57c3446aa0567987ef (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@35695 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_queue.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index 1bb0420e3..e336fa231 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -3425,9 +3425,11 @@ static void reload_queues(void)
} else
ast_log(LOG_WARNING, "XXX Leaking a little memory :( XXX\n");
} else {
+ ast_mutex_lock(&q->lock);
for (cur = q->members; cur; cur = cur->next)
cur->status = ast_device_state(cur->interface);
ql = q;
+ ast_mutex_unlock(&q->lock);
}
q = qn;
}