Make QueueStatusComplete manager event thread safe by wrapping it inside the already existing Queue Lock clause. #7013 (bziherl reporting)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
a7f330a2d2
commit
c0186f6b4d
|
@ -3828,13 +3828,14 @@ static int manager_queues_status( struct mansession *s, struct message *m )
|
|||
}
|
||||
ast_mutex_unlock(&q->lock);
|
||||
}
|
||||
AST_LIST_UNLOCK(&queues);
|
||||
|
||||
astman_append(s,
|
||||
"Event: QueueStatusComplete\r\n"
|
||||
"%s"
|
||||
"\r\n",idText);
|
||||
|
||||
AST_LIST_UNLOCK(&queues);
|
||||
|
||||
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue