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:
Mike Jerris 2015-12-23 12:19:05 -06:00
commit 5fbe53813c
1 changed files with 2 additions and 1 deletions

View File

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