refactor: Wait with tray initialization until ready

This commit is contained in:
Michael Carlberg 2017-01-12 16:12:54 +01:00
parent ef6f649579
commit f33d383726
5 changed files with 16 additions and 7 deletions
src/components

View file

@ -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;
}