mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-09 23:28:33 +00:00
Merge branch '1.0' into 2.0
This commit is contained in:
commit
d8eec980b7
@ -3428,7 +3428,7 @@ class SSH2
|
|||||||
*/
|
*/
|
||||||
function isConnected()
|
function isConnected()
|
||||||
{
|
{
|
||||||
return (bool) ($this->bitmap & self::MASK_CONNECTED);
|
return ($this->bitmap & self::MASK_CONNECTED) && is_resource($this->fsock) && !feof($this->fsock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user