mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-12 09:09:39 +01:00
SSH2: use exceptions rather than user_error
This commit is contained in:
parent
15263f0c9c
commit
779e11e496
@ -3335,8 +3335,8 @@ class SSH2
|
||||
$raw = stream_get_contents($this->fsock, $this->decrypt_block_size);
|
||||
|
||||
if (!strlen($raw)) {
|
||||
user_error('No data received from server');
|
||||
return false;
|
||||
$this->bitmap = 0;
|
||||
throw new ConnectionClosedException('No data received from server');
|
||||
}
|
||||
|
||||
if ($this->decrypt) {
|
||||
|
Loading…
Reference in New Issue
Block a user