mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Remove possibility of manager deadlocks from manager actions
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6687 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1381,7 +1381,6 @@ static int action_agents(struct mansession *s, struct message *m)
|
||||
astman_send_ack(s, m, "Agents will follow");
|
||||
ast_mutex_lock(&agentlock);
|
||||
p = agents;
|
||||
ast_mutex_lock(&s->lock);
|
||||
while(p) {
|
||||
ast_mutex_lock(&p->lock);
|
||||
|
||||
@@ -1440,8 +1439,6 @@ static int action_agents(struct mansession *s, struct message *m)
|
||||
ast_cli(s->fd, "Event: AgentsComplete\r\n"
|
||||
"%s"
|
||||
"\r\n",idText);
|
||||
ast_mutex_unlock(&s->lock);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user