1
0
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:
Daniel Lowrey 2014-08-05 23:48:41 -04:00
parent 5878430a0c
commit b375f048d4

View File

@ -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;