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:
@@ -1876,8 +1876,7 @@ static int manager_parking_status( struct mansession *s, struct message *m )
|
||||
|
||||
cur=parkinglot;
|
||||
while(cur) {
|
||||
ast_mutex_lock(&s->lock);
|
||||
ast_cli(s->fd, "Event: ParkedCall\r\n"
|
||||
ast_cli(s->fd, "Event: ParkedCall\r\n"
|
||||
"Exten: %d\r\n"
|
||||
"Channel: %s\r\n"
|
||||
"Timeout: %ld\r\n"
|
||||
@@ -1890,7 +1889,6 @@ static int manager_parking_status( struct mansession *s, struct message *m )
|
||||
,(cur->chan->cid.cid_num ? cur->chan->cid.cid_num : "")
|
||||
,(cur->chan->cid.cid_name ? cur->chan->cid.cid_name : "")
|
||||
,idText);
|
||||
ast_mutex_unlock(&s->lock);
|
||||
|
||||
cur = cur->next;
|
||||
}
|
||||
|
Reference in New Issue
Block a user