mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-26 21:51:13 +01:00
b main
sig int handler check if pointer is not null
This commit is contained in:
@@ -41,6 +41,7 @@ void int_handler(int s)
|
||||
g_out << "Caught Ctrl + C" << std::endl;
|
||||
if (g_web_socket != nullptr)
|
||||
g_web_socket->stop();
|
||||
if (g_simulators != nullptr)
|
||||
g_simulators->stop();
|
||||
g_out << "Shutting down." << std::endl;
|
||||
// delay to allow the server to stop gracefully
|
||||
|
||||
Reference in New Issue
Block a user