Skip to content

Commit 883521f

Browse files
committed
Additional stopped check
1 parent 607623a commit 883521f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/EventLoop/Internal/AbstractDriver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ public function __construct()
9191
$this->queueCallback = $this->queue(...);
9292
$this->runCallback = function (): ?\Closure {
9393
do {
94+
if ($this->stopped) {
95+
return null;
96+
}
97+
9498
if ($this->fiber->isTerminated()) {
9599
$this->createLoopFiber();
96100
}

0 commit comments

Comments
 (0)