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:
parent
e2c63c83eb
commit
a04eda397b
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user