1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Do not call uv_* functions on expired timers

This commit is contained in:
Aaron Piotrowski 2017-05-15 12:41:43 -05:00
parent 40299959bf
commit de783b8eb1

View File

@ -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 {