Avoid looping in demo (#486)
This commit is contained in:
parent
d92a7eb675
commit
d6b1d36c6e
|
@ -56,7 +56,7 @@ async fn main() -> Result<()> {
|
||||||
eprintln!("Switching to polling for funsies");
|
eprintln!("Switching to polling for funsies");
|
||||||
config.file_watcher(Watcher::Poll(Duration::from_millis(50)));
|
config.file_watcher(Watcher::Poll(Duration::from_millis(50)));
|
||||||
w.reconfigure(config)?;
|
w.reconfigure(config)?;
|
||||||
} else {
|
} else if (action.events.iter().flat_map(Event::paths).next().is_some()) {
|
||||||
action.outcome(Outcome::if_running(
|
action.outcome(Outcome::if_running(
|
||||||
Outcome::both(Outcome::Stop, Outcome::Start),
|
Outcome::both(Outcome::Stop, Outcome::Start),
|
||||||
Outcome::Start,
|
Outcome::Start,
|
||||||
|
|
Loading…
Reference in New Issue