From 5df4aae786a0ad48be86701ccd7b73a867f5fee8 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Thu, 26 Feb 2026 13:06:59 +0100 Subject: [PATCH] refactor: clean-up in FSEventsBackend --- src/nightwatch.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nightwatch.zig b/src/nightwatch.zig index ee01b76..fb43e39 100644 --- a/src/nightwatch.zig +++ b/src/nightwatch.zig @@ -324,7 +324,6 @@ const FSEventsBackend = struct { self.queue = null; } if (self.ctx) |c| { - c.parent.deinit(); allocator.destroy(c); self.ctx = null; } @@ -411,7 +410,7 @@ const FSEventsBackend = struct { .modified else continue; - ctx.parent.send(.{ "FW", "change", path, event_type }) catch return; + ctx.handler.change(path, event_type); } }