diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 74dc7ab0..e2c022bd 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3335,7 +3335,7 @@ class 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 {