1
0
mirror of https://github.com/danog/amp.git synced 2025-01-22 21:31:18 +01:00

Missed this suspension resume/throw

This commit is contained in:
Aaron Piotrowski 2021-03-28 22:32:58 -05:00
parent 2f658986f9
commit 56ba17f0ec
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -434,9 +434,9 @@ final class EmitSource
}
if ($exception) {
Loop::queue(static fn() => $placeholder->throw($exception));
$placeholder->throw($exception);
} else {
Loop::queue(static fn() => $placeholder->resume(null));
$placeholder->resume(null);
}
}