1
0
mirror of https://github.com/danog/phpseclib.git synced 2024-12-11 16:49:42 +01:00

Merge branch '2.0' into 3.0

This commit is contained in:
terrafrost 2022-06-14 05:42:25 -05:00
commit d85417c6ec

View File

@ -3281,6 +3281,9 @@ class SFTP extends SSH2
while ($tempLength > 0) {
$temp = $this->get_channel_packet(self::CHANNEL, true);
if (is_bool($temp)) {
if ($temp && $this->channel_status[self::CHANNEL] === NET_SSH2_MSG_CHANNEL_CLOSE) {
$this->channel_close = true;
}
$this->packet_type = false;
$this->packet_buffer = '';
return false;