fix(core): fix wrong loop in file watcher

This commit is contained in:
Federico Terzi 2021-06-03 21:43:56 +02:00
parent c79d248812
commit 34f08964d7

View File

@ -32,7 +32,7 @@ pub fn initialize_and_spawn(config_dir: &Path, watcher_notify: Sender<()>) -> Re
std::thread::Builder::new() std::thread::Builder::new()
.name("watcher".to_string()) .name("watcher".to_string())
.spawn(move || loop { .spawn(move || {
watcher_main(&config_dir, &watcher_notify); watcher_main(&config_dir, &watcher_notify);
})?; })?;