forked from Mirrors/freeswitch
bugfix: prevented endless loop in sendmsg
FS-8667 - some commands do not send a response with the type command/reply but send api/response instead. check for this type, too in order to prevent $client->comand() from never returning to the users script.
This commit is contained in:
parent
010db753f6
commit
c61f6826c8
|
@ -145,7 +145,8 @@ sub sendmsg($$$) {
|
|||
|
||||
for(;;) {
|
||||
$e = $self->readhash(undef);
|
||||
last if $e->{socketerror} or $e->{'content-type'} eq 'command/reply';
|
||||
last if $e->{socketerror} or $e->{'content-type'} eq 'command/reply'
|
||||
or $e->{'content-type'} eq 'api/response';
|
||||
push @{$self->{events}}, $e;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue