mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +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;
|
g_out << "Caught Ctrl + C" << std::endl;
|
||||||
if (g_web_socket != nullptr)
|
if (g_web_socket != nullptr)
|
||||||
g_web_socket->stop();
|
g_web_socket->stop();
|
||||||
|
if (g_simulators != nullptr)
|
||||||
g_simulators->stop();
|
g_simulators->stop();
|
||||||
g_out << "Shutting down." << std::endl;
|
g_out << "Shutting down." << std::endl;
|
||||||
// delay to allow the server to stop gracefully
|
// delay to allow the server to stop gracefully
|
||||||
|
|||||||
Reference in New Issue
Block a user