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
commit 2e340ff78c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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();
}
}
}