1
0
mirror of https://github.com/danog/dns.git synced 2024-11-26 20:14:51 +01:00

Fix tests

This commit is contained in:
Niklas Keller 2018-07-29 20:18:51 +02:00
parent 19b3e39d81
commit 7959b6b52b

View File

@ -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;
}