Skip to content

Commit 856a930

Browse files
committed
Fixup execution order
1 parent 08793c8 commit 856a930

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/Loop.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ protected function reportPause(float $timeout): void
6767
*/
6868
public function start(): bool
6969
{
70-
if ($this->running) {
71-
return false;
72-
}
7370
if ($this->shutdownDeferred) {
7471
$this->shutdownDeferred->getFuture()->await();
7572
}
73+
if ($this->running) {
74+
return false;
75+
}
7676
$this->running = true;
7777
if (!$this->resume()) {
7878
// @codeCoverageIgnoreStart

0 commit comments

Comments
 (0)