mirror of
https://github.com/danog/tgseclib.git
synced 2025-01-22 05:51:20 +01:00
SSH2: update conditions under which _disconnect's code is executed
This commit is contained in:
parent
1698880660
commit
472e006b6c
@ -3372,7 +3372,7 @@ class Net_SSH2
|
||||
*/
|
||||
function _disconnect($reason)
|
||||
{
|
||||
if ($this->bitmap) {
|
||||
if ($this->bitmap & NET_SSH2_MASK_CONNECTED) {
|
||||
$data = pack('CNNa*Na*', NET_SSH2_MSG_DISCONNECT, $reason, 0, '', 0, '');
|
||||
$this->_send_binary_packet($data);
|
||||
$this->bitmap = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user