refactor: Wait with tray initialization until ready
This commit is contained in:
parent
ef6f649579
commit
f33d383726
5 changed files with 16 additions and 7 deletions
src/components
|
@ -183,6 +183,8 @@ bool controller::run(bool writeback) {
|
|||
throw application_error("No modules started");
|
||||
}
|
||||
|
||||
m_sig.emit(signals::eventqueue::start{});
|
||||
|
||||
m_connection.flush();
|
||||
|
||||
m_event_thread = thread(&controller::process_eventqueue, this);
|
||||
|
@ -531,7 +533,7 @@ bool controller::on(const sig_ev::check_state&) {
|
|||
}
|
||||
}
|
||||
m_log.warn("No running modules...");
|
||||
on(exit_terminate{});
|
||||
on(sig_ev::exit_terminate{});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue