refactor: clean-up in FSEventsBackend
This commit is contained in:
parent
92604f9be3
commit
5df4aae786
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue