mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
update on shutdown
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user