Skip to content

Commit b0c11f7

Browse files
committed
Cleanup
1 parent 0eb7d92 commit b0c11f7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/EventLoop/Internal/AbstractDriver.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -639,15 +639,14 @@ private function createErrorFiber(): void
639639
$this->errorFiber = new \Fiber(function (\Throwable $exception): void {
640640
do {
641641
try {
642-
$exception ??= Fiber::suspend($this->internalSuspensionMarker);
643642
($this->errorHandler)($exception);
644643
} catch (\Throwable $exception) {
645644
$errorHandler = $this->errorHandler;
646645
$this->interrupt = static fn () => $exception instanceof UncaughtThrowable
647646
? throw $exception
648647
: throw UncaughtThrowable::throwingErrorHandler($errorHandler, $exception);
649648
}
650-
$exception = null;
649+
$exception = Fiber::suspend($this->internalSuspensionMarker);
651650
} while (true);
652651
});
653652
}

0 commit comments

Comments
 (0)