diff --git a/src/bin.rs b/src/bin.rs index b0ff3a68..9422c62c 100644 --- a/src/bin.rs +++ b/src/bin.rs @@ -195,7 +195,7 @@ fn main() { println!("Server listening on port {}", port); loop { - thread::sleep(Duration::from_secs(1)); + thread::park(); } }, ("pack", _) => { diff --git a/src/vfs_watch.rs b/src/vfs_watch.rs index f28e200f..872ba683 100644 --- a/src/vfs_watch.rs +++ b/src/vfs_watch.rs @@ -93,7 +93,7 @@ impl VfsWatcher { } loop { - thread::sleep(Duration::from_secs(1)); + thread::park(); } } }