mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
Do not call uv_* functions on expired timers
This commit is contained in:
parent
40299959bf
commit
de783b8eb1
@ -89,7 +89,8 @@ class UvDriver extends Driver {
|
||||
$watcher = $this->watchers[(int) $event];
|
||||
|
||||
if ($watcher->type & Watcher::DELAY) {
|
||||
$this->cancel($watcher->id);
|
||||
unset($this->events[$watcher->id], $this->watchers[(int) $event]); // Avoid call to uv_is_active().
|
||||
$this->cancel($watcher->id); // Remove reference to watcher in parent.
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user