1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00

Fix wait to reuse current default loop

This commit is contained in:
Niklas Keller 2016-05-22 10:57:31 +02:00
parent 9f4d38471d
commit 0b954b2515

View File

@ -83,7 +83,7 @@ function wait(Awaitable $awaitable, LoopDriver $driver = null) {
$exception = $e;
$value = $v;
});
}, $driver);
}, $driver ?: Loop::get());
if ($exception) {
throw $exception;