diff --git a/lib/Loop/UvDriver.php b/lib/Loop/UvDriver.php index 3c8d2bea..8dfba228 100644 --- a/lib/Loop/UvDriver.php +++ b/lib/Loop/UvDriver.php @@ -168,7 +168,7 @@ public function cancel(string $watcherId) if (isset($this->watchers[$eventId][0])) { // All except IO watchers. unset($this->watchers[$eventId]); - } else { + } elseif (isset($this->watchers[$eventId][$watcherId])) { $watcher = $this->watchers[$eventId][$watcherId]; unset($this->watchers[$eventId][$watcherId]);