]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
timeout bug pointed out by davidnicol
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Feb 2007 18:47:22 +0000 (18:47 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Feb 2007 18:47:22 +0000 (18:47 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4263 d0543943-73ff-0310-b7d9-9358b9ac24b2

scripts/socket/FreeSWITCH/Client.pm

index 26d237eb5aee913191132a01c906e192f00afbcc..91282caee81fe4f1caa5707dd94f755e3d93cdbc 100644 (file)
@@ -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;