mirror of
https://github.com/Sani7/remote-ui.git
synced 2026-10-27 06:01:14 +01:00
main
add prefix to simulators
This commit is contained in:
+4
-3
@@ -6,15 +6,16 @@
|
||||
#include "simulators.hpp"
|
||||
#include "websocket.hpp"
|
||||
|
||||
Simulators simulators;
|
||||
Simulators g_simulators;
|
||||
Websocket* g_web_socket;
|
||||
|
||||
void int_handler(int s)
|
||||
{
|
||||
UNUSED(s);
|
||||
std::cout << "\nCaught Ctrl + C\nShutting down." << std::endl;
|
||||
g_web_socket->stop();
|
||||
simulators.stop();
|
||||
if (g_web_socket != nullptr)
|
||||
g_web_socket->stop();
|
||||
g_simulators.stop();
|
||||
// delay
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user