Fix #21: High CPU usage in a small project

This commit is contained in:
James Onnen
2017-12-17 14:20:24 -06:00
parent b4e31ea35d
commit ae6ca6fb23
2 changed files with 7 additions and 2 deletions

View File

@@ -92,6 +92,8 @@ impl VfsWatcher {
}
}
loop {}
loop {
thread::sleep(Duration::from_secs(1));
}
}
}