mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
another normalization of AMI vs HTTP identification.
Should really define a macro IS_AMI(s) so it is clear what we want to do. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48078 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1149,7 +1149,7 @@ static int action_waitevent(struct mansession *s, struct message *m)
|
||||
ast_mutex_unlock(&s->__lock);
|
||||
if (needexit)
|
||||
break;
|
||||
if (!s->inuse && s->fd > 0) { /* AMI session */
|
||||
if (s->managerid == 0) { /* AMI session */
|
||||
if (ast_wait_for_input(s->fd, 1000))
|
||||
break;
|
||||
} else { /* HTTP session */
|
||||
|
Reference in New Issue
Block a user