diff --git a/scripts/socket/FreeSWITCH/Client.pm b/scripts/socket/FreeSWITCH/Client.pm index 26d237eb5a..91282caee8 100644 --- a/scripts/socket/FreeSWITCH/Client.pm +++ b/scripts/socket/FreeSWITCH/Client.pm @@ -27,7 +27,7 @@ sub init($;$) { sub readhash($;$) { my ($self,$to) = @_; - my ($can_read) = IO::Select::select($self->{_sel}, undef, undef, $to ? to : undef); + my ($can_read) = IO::Select::select($self->{_sel}, undef, undef, $to); my $s = shift @{$can_read}; my @r = (); my $crc = 0;