diff --git a/crates/lib/examples/demo.rs b/crates/lib/examples/demo.rs index edc5634..1e6e7b6 100644 --- a/crates/lib/examples/demo.rs +++ b/crates/lib/examples/demo.rs @@ -56,7 +56,7 @@ async fn main() -> Result<()> { eprintln!("Switching to polling for funsies"); config.file_watcher(Watcher::Poll(Duration::from_millis(50))); w.reconfigure(config)?; - } else { + } else if (action.events.iter().flat_map(Event::paths).next().is_some()) { action.outcome(Outcome::if_running( Outcome::both(Outcome::Stop, Outcome::Start), Outcome::Start,