We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 856a930 commit bf3ef5dCopy full SHA for bf3ef5d
1 file changed
lib/Loop.php
@@ -67,7 +67,7 @@ protected function reportPause(float $timeout): void
67
*/
68
public function start(): bool
69
{
70
- if ($this->shutdownDeferred) {
+ while ($this->shutdownDeferred !== null) {
71
$this->shutdownDeferred->getFuture()->await();
72
}
73
if ($this->running) {
@@ -112,7 +112,6 @@ public function stop(): bool
112
// @codeCoverageIgnoreEnd
113
114
$this->shutdownDeferred = new DeferredFuture;
115
- $this->shutdownDeferred->getFuture()->await();
116
117
return true;
118
0 commit comments