SCP: use the new "mode" for _close_channel

This commit is contained in:
terrafrost 2013-12-15 12:07:17 -06:00
parent c01b8fc4ed
commit 1599d2e8d1

View File

@ -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();