mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 11:52:48 +00:00
Merge branch '3.0'
This commit is contained in:
commit
6ee1f8c45b
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user