Merge pull request #639 in FS/freeswitch from ~GRINDHOLD/freeswitch:bugfix/perl-sendmsg-fix to master
* commit 'c61f6826c80bc95977b9be49dfbdcc23562e4d8d': bugfix: prevented endless loop in sendmsg
This commit is contained in:
commit
5fbe53813c
|
@ -145,7 +145,8 @@ sub sendmsg($$$) {
|
||||||
|
|
||||||
for(;;) {
|
for(;;) {
|
||||||
$e = $self->readhash(undef);
|
$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;
|
push @{$self->{events}}, $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue