update on shutdown

This commit is contained in:
2024-08-20 00:13:01 +02:00
parent 37ee64d3e1
commit d740d54f86
+4 -2
View File
@@ -15,8 +15,10 @@ void int_handler(int s)
UNUSED(s); UNUSED(s);
std::cout << "\nCaught Ctrl + C\nShutting down." << std::endl; std::cout << "\nCaught Ctrl + C\nShutting down." << std::endl;
g_web_socket->stop(); g_web_socket->stop();
exit(1); simulators.stop();
// delay
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
exit(1);
} }
int main(void) int main(void)