Reordered controller shutdown ordering.
This commit is contained in:
parent
719ac8de7b
commit
e23a835c26
1 changed files with 1 additions and 1 deletions
|
@ -473,8 +473,8 @@ int main(int argc, char ** argv){
|
|||
}
|
||||
API_Socket.close();
|
||||
Controller::Log("CONF", "Controller shutting down");
|
||||
Util::Procs::StopAll();
|
||||
Controller::WriteFile("config.json", Controller::Storage.toString());
|
||||
Util::Procs::StopAll();
|
||||
std::cout << "Killed all processes, wrote config to disk. Exiting." << std::endl;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue