diff --git a/espanso/src/cli/daemon/watcher.rs b/espanso/src/cli/daemon/watcher.rs index 16741f1..e868d33 100644 --- a/espanso/src/cli/daemon/watcher.rs +++ b/espanso/src/cli/daemon/watcher.rs @@ -32,7 +32,7 @@ pub fn initialize_and_spawn(config_dir: &Path, watcher_notify: Sender<()>) -> Re std::thread::Builder::new() .name("watcher".to_string()) - .spawn(move || loop { + .spawn(move || { watcher_main(&config_dir, &watcher_notify); })?;