refactor: clean-up in FSEventsBackend

This commit is contained in:
CJ van den Berg 2026-02-26 13:06:59 +01:00
parent 92604f9be3
commit 5df4aae786
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

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