SSH2: rm redundant isAuthenticated() call

This commit is contained in:
terrafrost 2023-05-07 11:24:33 -05:00
parent 89d8e6ecbb
commit 3dd7779939

View File

@ -3074,7 +3074,7 @@ class SSH2
$channel = $this->get_interactive_channel(); $channel = $this->get_interactive_channel();
} }
if (!$this->isInteractiveChannelOpen($channel) && empty($this->channel_buffers[$channel])) { if (!$this->is_channel_status_data($channel) && empty($this->channel_buffers[$channel])) {
if ($channel != self::CHANNEL_SHELL) { if ($channel != self::CHANNEL_SHELL) {
throw new InsufficientSetupException('Data is not available on channel'); throw new InsufficientSetupException('Data is not available on channel');
} elseif (!$this->openShell()) { } elseif (!$this->openShell()) {
@ -3132,7 +3132,7 @@ class SSH2
$channel = $this->get_interactive_channel(); $channel = $this->get_interactive_channel();
} }
if (!$this->isInteractiveChannelOpen($channel)) { if (!$this->is_channel_status_data($channel)) {
if ($channel != self::CHANNEL_SHELL) { if ($channel != self::CHANNEL_SHELL) {
throw new InsufficientSetupException('Data is not available on channel'); throw new InsufficientSetupException('Data is not available on channel');
} elseif (!$this->openShell()) { } elseif (!$this->openShell()) {