Merge branch '3.0'

This commit is contained in:
terrafrost 2023-07-05 07:30:46 -05:00
commit 6ee1f8c45b
1 changed files with 1 additions and 1 deletions

View File

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