main: Don't quit, when the last output is gone
This commit is contained in:
parent
953c277cb0
commit
c07356fa01
1 changed files with 1 additions and 10 deletions
11
src/main.rs
11
src/main.rs
|
|
@ -114,16 +114,7 @@ fn main() -> Result<()> {
|
||||||
// run the event loop
|
// run the event loop
|
||||||
event_loop.run(None, &mut state, |state| {
|
event_loop.run(None, &mut state, |state| {
|
||||||
// shall we shut down?
|
// shall we shut down?
|
||||||
if state
|
if state.common.should_stop {
|
||||||
.common
|
|
||||||
.shell
|
|
||||||
.read()
|
|
||||||
.unwrap()
|
|
||||||
.outputs()
|
|
||||||
.next()
|
|
||||||
.is_none()
|
|
||||||
|| state.common.should_stop
|
|
||||||
{
|
|
||||||
info!("Shutting down");
|
info!("Shutting down");
|
||||||
state.common.event_loop_signal.stop();
|
state.common.event_loop_signal.stop();
|
||||||
state.common.event_loop_signal.wakeup();
|
state.common.event_loop_signal.wakeup();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue