We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb7d92 commit b0c11f7Copy full SHA for b0c11f7
src/EventLoop/Internal/AbstractDriver.php
@@ -639,15 +639,14 @@ private function createErrorFiber(): void
639
$this->errorFiber = new \Fiber(function (\Throwable $exception): void {
640
do {
641
try {
642
- $exception ??= Fiber::suspend($this->internalSuspensionMarker);
643
($this->errorHandler)($exception);
644
} catch (\Throwable $exception) {
645
$errorHandler = $this->errorHandler;
646
$this->interrupt = static fn () => $exception instanceof UncaughtThrowable
647
? throw $exception
648
: throw UncaughtThrowable::throwingErrorHandler($errorHandler, $exception);
649
}
650
- $exception = null;
+ $exception = Fiber::suspend($this->internalSuspensionMarker);
651
} while (true);
652
});
653
0 commit comments