mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 20:55:50 +00:00
Unwatch paths when they're reported as removed
This commit is contained in:
@@ -147,8 +147,14 @@ impl VfsLock {
|
||||
self.backend.event_receiver()
|
||||
}
|
||||
|
||||
pub fn commit_event(&mut self, _event: &VfsEvent) -> io::Result<()> {
|
||||
// Because we hold no state, there's no cache to update here.
|
||||
pub fn commit_event(&mut self, event: &VfsEvent) -> io::Result<()> {
|
||||
match event {
|
||||
VfsEvent::Remove(path) => {
|
||||
let _ = self.backend.unwatch(&path);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user