1
0
mirror of https://github.com/danog/loop.git synced 2024-11-26 20:04:44 +01:00

Add extra assertion

This commit is contained in:
Github Actions 2023-01-24 02:24:28 +01:00
parent bdeb4b05dc
commit d4a3264eef

View File

@ -101,8 +101,9 @@ abstract class Loop implements Stringable
private bool $paused = true;
private function loopInternal(): void
{
$this->paused = false;
\assert($this->running);
\assert($this->paused);
$this->paused = false;
try {
$timeout = $this->loop();
} catch (\Throwable $e) {