diff --git a/es-core/src/utils/PlatformUtil.cpp b/es-core/src/utils/PlatformUtil.cpp index 5912f9f50..b0938a667 100644 --- a/es-core/src/utils/PlatformUtil.cpp +++ b/es-core/src/utils/PlatformUtil.cpp @@ -287,15 +287,15 @@ namespace Utils switch (sQuitMode) { case QuitMode::REBOOT: { LOG(LogInfo) << "Rebooting system"; - Scripting::fireEvent("quit"); Scripting::fireEvent("reboot"); + Scripting::fireEvent("quit"); runRebootCommand(); break; } case QuitMode::POWEROFF: { LOG(LogInfo) << "Powering off system"; - Scripting::fireEvent("quit"); Scripting::fireEvent("poweroff"); + Scripting::fireEvent("quit"); runPoweroffCommand(); break; }