Make QueueStatusComplete manager event thread safe by wrapping it inside the already existing Queue Lock clause. #7013 (bziherl reporting)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25523 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
2b2565f7ae
commit
77999f4d25
|
@ -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;
|
||||
}
|
||||
|
|
Reference in New Issue