1
0
mirror of https://github.com/danog/loop.git synced 2024-12-03 09:47:48 +01:00

Fix reportPause triggering even in case of CONTINUE

This commit is contained in:
Daniil Gentili 2023-09-03 16:31:18 +02:00
parent 6112950271
commit 73f1574f37
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -162,9 +162,11 @@ abstract class Loop implements Stringable
$this->loopInternal(); $this->loopInternal();
}); });
} }
if ($timeout !== self::CONTINUE) {
$this->reportPause($timeout); $this->reportPause($timeout);
} }
} }
}
private function exitedLoopInternal(): void private function exitedLoopInternal(): void
{ {