Merge pull request #22 from Quenty/fix-21-high-cpu

Fix #21: High CPU usage in a small project
This commit is contained in:
Lucien Greathouse
2017-12-17 21:42:21 -08:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -193,7 +193,9 @@ fn main() {
println!("Server listening on port {}", port);
loop {}
loop {
thread::park();
}
},
("pack", _) => {
eprintln!("'rojo pack' is not yet implemented!");

View File

@@ -92,6 +92,8 @@ impl VfsWatcher {
}
}
loop {}
loop {
thread::park();
}
}
}