chore: resolve undefined-field

This commit is contained in:
Alexander Courtis 2024-10-26 15:13:05 +11:00
parent 558d90deb1
commit eacb61008d

View File

@ -192,7 +192,10 @@ function Watcher:destroy()
self.event:remove(self.listener)
utils.array_remove(watchers, self)
utils.array_remove(
watchers,
self
)
self.destroyed = true
end