diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-10 15:11:38 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-10 15:11:38 +0000 |
commit | 2b772ac9646c71e87a787047a311c7e5b61a2d07 (patch) | |
tree | ba1d864f82199845aab6a2f174aa6d3b8d844ac7 /apps | |
parent | d1fab10737f98b505b68db7849a15206c6390539 (diff) |
Properly lock management stuff (bug #2406)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3759 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-x | 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 07b5eaa95..a2f2ae53c 100755 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2047,6 +2047,7 @@ static int manager_queues_status( struct mansession *s, struct message *m ) /* List queue properties */ if(q->callscompleted > 0) sl = 100*((float)q->callscompletedinsl/(float)q->callscompleted); + ast_mutex_lock(&s->lock); ast_cli(s->fd, "Event: QueueParams\r\n" "Queue: %s\r\n" "Max: %d\r\n" @@ -2088,6 +2089,7 @@ static int manager_queues_status( struct mansession *s, struct message *m ) "%s" "\r\n", q->name, pos++, qe->chan->name, (qe->chan->callerid ? qe->chan->callerid : ""), (long)(now - qe->start), idText); + ast_mutex_unlock(&s->lock); ast_mutex_unlock(&q->lock); } ast_mutex_unlock(&qlock); |