mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +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_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
	
	Block a user