diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 25e7c912..a056c88e 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -2782,7 +2782,7 @@ class SSH2 $this->channel_status[self::CHANNEL_EXEC] = NET_SSH2_MSG_CHANNEL_DATA; - if ($callback === false || $this->in_request_pty_exec) { + if ($this->in_request_pty_exec) { return true; }