Small fix

This commit is contained in:
Daniil Gentili 2019-12-29 20:47:03 +01:00
parent f85f7bd8ba
commit 3b07546889
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -48,7 +48,7 @@ abstract class ResumableSignalLoop extends SignalLoop implements ResumableLoopIn
Loop::cancel($this->resumeWatcher);
$this->resumeWatcher = null;
}
$this->resumeWatcher = Loop::delay($time * 1000, [$this, 'resume'], $resume);
$this->resumeWatcher = Loop::delay((int) ($time * 1000), [$this, 'resume'], $resume);
}
$this->resume = new Deferred();