Merge pull request #115 from kdheepak/fix-last-tick-pause-stdin

This commit is contained in:
Dheepak Krishnamurthy 2021-02-17 04:16:09 -07:00 committed by GitHub
commit 0ae677fbaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,6 +83,7 @@ impl Events {
if pause_stdin.load(Ordering::SeqCst) {
thread::sleep(Duration::from_millis(250));
thread::park();
last_tick = Instant::now();
continue;
}