Merge branch '2.0' into 3.0

This commit is contained in:
terrafrost 2023-07-05 07:30:39 -05:00
commit 4013d260e0

View File

@ -3290,7 +3290,7 @@ class SSH2
*/
public function isConnected()
{
return (bool) ($this->bitmap & self::MASK_CONNECTED);
return ($this->bitmap & self::MASK_CONNECTED) && is_resource($this->fsock) && !feof($this->fsock);
}
/**