main: Don't quit, when the last output is gone

This commit is contained in:
Victoria Brekenfeld 2024-06-26 17:25:02 +02:00 committed by Victoria Brekenfeld
parent 953c277cb0
commit c07356fa01

View file

@ -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();