diff --git a/src/main.rs b/src/main.rs index 3b33c5cf..4c9c4860 100644 --- a/src/main.rs +++ b/src/main.rs @@ -114,16 +114,7 @@ fn main() -> Result<()> { // run the event loop event_loop.run(None, &mut state, |state| { // shall we shut down? - if state - .common - .shell - .read() - .unwrap() - .outputs() - .next() - .is_none() - || state.common.should_stop - { + if state.common.should_stop { info!("Shutting down"); state.common.event_loop_signal.stop(); state.common.event_loop_signal.wakeup();