Skip to content

Commit

Permalink
fix(refresh): no longer crash on os error 13
Browse files Browse the repository at this point in the history
  • Loading branch information
dzfrias committed Jul 7, 2023
1 parent 379c597 commit 52da9b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/external_event/refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ pub fn fs_watch(
},
)?
};
watcher.watcher().watch(path, RecursiveMode::Recursive)?;
// Swallow errors related to watching
let _ = watcher.watcher().watch(path, RecursiveMode::Recursive);
let buffer = ChangeBuffer::new();
let mut thread_buffer = buffer.clone();
thread::spawn(move || {
Expand Down

0 comments on commit 52da9b4

Please sign in to comment.