mirror of
https://github.com/danog/dns.git
synced 2024-11-26 20:14:51 +01:00
Fix tests
This commit is contained in:
parent
19b3e39d81
commit
7959b6b52b
@ -134,7 +134,7 @@ abstract class Socket
|
||||
|
||||
if (!$this->receiving) {
|
||||
$this->receiving = true;
|
||||
Task::async(\Closure::fromCallable([$this, 'receiveIncomingMessages']));
|
||||
Amp\rethrow(Task::async(\Closure::fromCallable([$this, 'receiveIncomingMessages'])));
|
||||
}
|
||||
|
||||
try {
|
||||
@ -214,7 +214,7 @@ abstract class Socket
|
||||
while ($this->receiving) {
|
||||
try {
|
||||
$message = $this->receive();
|
||||
} catch (StreamException $exception) {
|
||||
} catch (\Throwable $exception) {
|
||||
$this->error($exception);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user