Skip to content

Commit

Permalink
Fix potential warning on shutdown in UvDriver
Browse files Browse the repository at this point in the history
Like everything shutdown related, this depends on destruction order and appears to only happen on 7.4+.
  • Loading branch information
trowski committed Jul 13, 2020
1 parent e2c63c8 commit a04eda3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Loop/UvDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit a04eda3

Please sign in to comment.