diff options
author | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-23 11:33:02 +0000 |
---|---|---|
committer | bweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-06-23 11:33:02 +0000 |
commit | 6615c6772cacec2397daf14e4c68eed6c02d431c (patch) | |
tree | f330a5755e8ca3616be9b57ceb0bdbe76dc2bb15 /apps | |
parent | 917167a8f0eedd138de8de944072d24da7bd37dc (diff) |
Merged revisions 35669 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r35669 | bweschke | 2006-06-23 06:30:17 -0500 (Fri, 23 Jun 2006) | 3 lines
We should lock the queue before we go making changes to member interface statuses.
........
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@35670 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index c85be14ce..2153e04be 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3746,8 +3746,10 @@ static void reload_queues(void) else 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) cur->status = ast_device_state(cur->interface); + ast_mutex_unlock(&q->lock); } } AST_LIST_TRAVERSE_SAFE_END; |