diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 7ad82ace..595b7c70 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3351,7 +3351,7 @@ class Net_SSH2 $read = array($this->fsock); $write = $except = null; - if ($this->curTimeout <= 0) { + if (!$this->curTimeout) { if ($this->keepAlive <= 0) { @stream_select($read, $write, $except, null); } else {