update on shutdown

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