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:
Mark Spencer
2005-09-28 23:10:14 +00:00
parent 4287cb7f42
commit ea215f5b7d
8 changed files with 118 additions and 83 deletions

View File

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