mirror of
https://github.com/danog/amp.git
synced 2025-01-22 05:11:42 +01:00
Fix UvReactor memory leak where one-time watchers were never cleared
This commit is contained in:
parent
5878430a0c
commit
b375f048d4
@ -133,7 +133,7 @@ class UvReactor implements Reactor {
|
||||
try {
|
||||
$callback($watcher->id, $this);
|
||||
if ($watcher->mode === self::$MODE_ONCE) {
|
||||
$this->clearWatcher($watcherId);
|
||||
$this->clearWatcher($watcher->id);
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
$this->stopException = $e;
|
||||
|
Loading…
x
Reference in New Issue
Block a user