Add 'event.system.startup_done/shutdown' commands/events (Closes #24)

This commit is contained in:
chros
2018-09-26 15:12:20 +01:00
parent a4b281afa4
commit 74435f6c40
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -168,6 +168,8 @@ Control::is_shutdown_completed() {
void
Control::handle_shutdown() {
rpc::commands.call_catch("event.system.shutdown", rpc::make_target(), "shutdown", "System shutdown event action failed: ");
if (!m_shutdownQuick) {
// Temporary hack:
if (worker_thread->is_active())