mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-27 04:46:26 +01:00
SCP: use the new "mode" for _close_channel
This commit is contained in:
parent
c01b8fc4ed
commit
1599d2e8d1
@ -353,7 +353,7 @@ class Net_SCP {
|
||||
{
|
||||
switch ($this->mode) {
|
||||
case NET_SCP_SSH2:
|
||||
$this->ssh->_close_channel(NET_SSH2_CHANNEL_EXEC);
|
||||
$this->ssh->_close_channel(NET_SSH2_CHANNEL_EXEC, true);
|
||||
break;
|
||||
case NET_SCP_SSH1:
|
||||
$this->ssh->disconnect();
|
||||
|
Loading…
Reference in New Issue
Block a user