mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
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:
@@ -3828,13 +3828,14 @@ static int manager_queues_status( struct mansession *s, struct message *m )
|
|||||||
}
|
}
|
||||||
ast_mutex_unlock(&q->lock);
|
ast_mutex_unlock(&q->lock);
|
||||||
}
|
}
|
||||||
AST_LIST_UNLOCK(&queues);
|
|
||||||
|
|
||||||
astman_append(s,
|
astman_append(s,
|
||||||
"Event: QueueStatusComplete\r\n"
|
"Event: QueueStatusComplete\r\n"
|
||||||
"%s"
|
"%s"
|
||||||
"\r\n",idText);
|
"\r\n",idText);
|
||||||
|
|
||||||
|
AST_LIST_UNLOCK(&queues);
|
||||||
|
|
||||||
|
|
||||||
return RESULT_SUCCESS;
|
return RESULT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user