diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 25413796..66d1587a 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2623,7 +2623,7 @@ class SSH2 $this->channel_status[self::CHANNEL_EXEC] = MessageType::CHANNEL_DATA; - if ($callback === false || $this->in_request_pty_exec) { + if ($this->in_request_pty_exec) { return true; }