mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
Remove calls to uv_close()
Watchers are closed on garabage collection if necessary.
This commit is contained in:
parent
51ab8cb134
commit
40299959bf
@ -149,13 +149,11 @@ class UvDriver extends Driver {
|
||||
|
||||
if ($this->watchers[$eventId] instanceof Watcher) { // All except IO watchers.
|
||||
unset($this->watchers[$eventId]);
|
||||
\uv_close($event);
|
||||
} else {
|
||||
unset($this->watchers[$eventId][$watcherId]);
|
||||
|
||||
if (empty($this->watchers[$eventId])) {
|
||||
unset($this->watchers[$eventId], $this->streams[$this->io[$eventId]], $this->io[$eventId]);
|
||||
\uv_close($event);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user