1
0
mirror of https://github.com/danog/amp.git synced 2024-12-03 09:57:51 +01:00

Fix potential warning on shutdown in UvDriver

Like everything shutdown related, this depends on destruction order and appears to only happen on 7.4+.
This commit is contained in:
Aaron Piotrowski 2020-07-13 10:12:25 -05:00
parent e2c63c83eb
commit a04eda397b
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

@ -168,7 +168,7 @@ class UvDriver extends Driver
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]);