mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-29 04:23:34 +00:00
Merge branch '2.0' into 3.0
This commit is contained in:
commit
2564032e6f
@ -2632,7 +2632,8 @@ class SSH2
|
|||||||
|
|
||||||
$this->send_binary_packet($packet);
|
$this->send_binary_packet($packet);
|
||||||
|
|
||||||
if (!$this->get_channel_packet(NET_SSH2_CHANNEL_EXEC)) {
|
$this->channel_status[self::CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_REQUEST;
|
||||||
|
if (!$this->get_channel_packet(self::CHANNEL_EXEC)) {
|
||||||
$this->disconnect_helper(NET_SSH2_DISCONNECT_BY_APPLICATION);
|
$this->disconnect_helper(NET_SSH2_DISCONNECT_BY_APPLICATION);
|
||||||
throw new \RuntimeException('Unable to request pseudo-terminal');
|
throw new \RuntimeException('Unable to request pseudo-terminal');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user