SSH2: timeout would occasionally infinitely loop

this was changed from !$this->curTimeout to $this->curTimeout <= 0
in commit 96c4c3bc58
This commit is contained in:
terrafrost 2021-05-14 12:55:06 -05:00
parent 9c47b0a696
commit 9a7cfafc8d
1 changed files with 1 additions and 1 deletions

View File

@ -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 {