diff --git a/lib/Loop/UvDriver.php b/lib/Loop/UvDriver.php index 84a1e6d9..74bd9d51 100644 --- a/lib/Loop/UvDriver.php +++ b/lib/Loop/UvDriver.php @@ -89,7 +89,8 @@ public function __construct() { $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 {