mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-04 18:48:24 +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);
|
$raw = stream_get_contents($this->fsock, $this->decrypt_block_size);
|
||||||
|
|
||||||
if (!strlen($raw)) {
|
if (!strlen($raw)) {
|
||||||
user_error('No data received from server');
|
$this->bitmap = 0;
|
||||||
return false;
|
throw new ConnectionClosedException('No data received from server');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->decrypt) {
|
if ($this->decrypt) {
|
||||||
|
Loading…
Reference in New Issue
Block a user