From fef893f60abc578418596d14ee022e4f9c96cecc Mon Sep 17 00:00:00 2001 From: Thulinma Date: Fri, 31 May 2024 15:31:09 +0200 Subject: [PATCH] Derp --- src/controller/controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controller/controller.cpp b/src/controller/controller.cpp index 81a55a39..02cfc2e8 100644 --- a/src/controller/controller.cpp +++ b/src/controller/controller.cpp @@ -659,11 +659,11 @@ int main(int argc, char **argv){ continue; } // if the exit was clean, don't restart it - if (WIFEXITED(status) && (WEXITSTATUS(status) == 0 && !Util::Config::is_restarting)){ + if (WIFEXITED(status) && (WEXITSTATUS(status) == 0) && !Util::Config::is_restarting){ MEDIUM_MSG("Controller shut down cleanly"); break; } - if (WIFEXITED(status) && (WEXITSTATUS(status) == 42 || Util::Config::is_restarting)){ + if ((WIFEXITED(status) && WEXITSTATUS(status) == 42) || Util::Config::is_restarting){ WARN_MSG("Refreshing angel process for update"); std::string myFile = Util::getMyPath() + "MistController"; execvp(myFile.c_str(), argv);