Merge branch 'Perl-FreeSWITCH-sendmsg-fix' of git://scm.dashjr.org/var/scmroot/git/freeswitch

This commit is contained in:
Brian West 2011-03-10 10:27:10 -06:00
commit 24bd230274

View File

@ -143,7 +143,13 @@ sub sendmsg($$$) {
} }
$self->output("\n"); $self->output("\n");
return $self->readhash($to); for(;;) {
$e = $self->readhash(undef);
last if $e->{socketerror} or $e->{'content-type'} eq 'command/reply';
push @{$self->{events}}, $e;
}
return $e;
} }
sub command($$) { sub command($$) {