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:
parent
9f4d38471d
commit
0b954b2515
@ -83,7 +83,7 @@ function wait(Awaitable $awaitable, LoopDriver $driver = null) {
|
||||
$exception = $e;
|
||||
$value = $v;
|
||||
});
|
||||
}, $driver);
|
||||
}, $driver ?: Loop::get());
|
||||
|
||||
if ($exception) {
|
||||
throw $exception;
|
||||
|
Loading…
Reference in New Issue
Block a user