diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index fcc55f35..c080baa0 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -3197,7 +3197,7 @@ class SSH2 $read = [$this->fsock]; $write = $except = null; - if ($this->curTimeout <= 0) { + if (!$this->curTimeout) { if ($this->keepAlive <= 0) { @stream_select($read, $write, $except, null); } else {