mirror of
https://github.com/danog/loop.git
synced 2024-11-26 11:54:51 +01:00
Add extra assertion
This commit is contained in:
parent
bdeb4b05dc
commit
d4a3264eef
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user