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