diff --git a/src/main.rs b/src/main.rs index 57fa5b2..415e68c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,7 @@ fn terminal_input_handler() { log::trace!("enter: terminal_input_handler"); loop { - if event::poll(Duration::from_millis(SLEEP_DURATION)).unwrap() { + if event::poll(Duration::from_millis(SLEEP_DURATION)).unwrap_or(false) { // It's guaranteed that the `read()` won't block when the `poll()` // function returns `true`