]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Make QueueStatusComplete event thread safe by wrapping it inside the queue lock...
authorBJ Weschke <bweschke@btwtech.com>
Mon, 8 May 2006 13:35:17 +0000 (13:35 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Mon, 8 May 2006 13:35:17 +0000 (13:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@25522 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index dda70b492844045c579ac553e3fcad729d14091f..a35a3ee191600157b7606a34a1f058bd0642ba98 100644 (file)
@@ -3525,13 +3525,13 @@ static int manager_queues_status( struct mansession *s, struct message *m )
                }
                ast_mutex_unlock(&q->lock);
        }
-       ast_mutex_unlock(&qlock);
 
        ast_cli(s->fd,
                "Event: QueueStatusComplete\r\n"
                "%s"
                "\r\n",idText);
 
+       ast_mutex_unlock(&qlock);
 
        return RESULT_SUCCESS;
 }