forked from Mirrors/freeswitch
Merge branch 'Perl-FreeSWITCH-sendmsg-fix' of git://scm.dashjr.org/var/scmroot/git/freeswitch
This commit is contained in:
commit
24bd230274
@ -143,7 +143,13 @@ sub sendmsg($$$) {
|
||||
}
|
||||
$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($$) {
|
||||
|
Loading…
Reference in New Issue
Block a user