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:
BJ Weschke 2006-05-08 13:38:14 +00:00
parent a7f330a2d2
commit c0186f6b4d
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}