mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-14 10:53:09 +00:00
SSH2: rm redundant isAuthenticated() call
This commit is contained in:
parent
89d8e6ecbb
commit
3dd7779939
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user