mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-27 12:55:58 +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) {
|
switch ($this->mode) {
|
||||||
case NET_SCP_SSH2:
|
case NET_SCP_SSH2:
|
||||||
$this->ssh->_close_channel(NET_SSH2_CHANNEL_EXEC);
|
$this->ssh->_close_channel(NET_SSH2_CHANNEL_EXEC, true);
|
||||||
break;
|
break;
|
||||||
case NET_SCP_SSH1:
|
case NET_SCP_SSH1:
|
||||||
$this->ssh->disconnect();
|
$this->ssh->disconnect();
|
||||||
|
Loading…
Reference in New Issue
Block a user