@brief Shutdown handler function - forcing the server pointer to be global.
| 57 | |
| 58 | /// @brief Shutdown handler function - forcing the server pointer to be global. |
| 59 | void handleShutdown() { |
| 60 | osvr::server::ServerPtr server(g_server.lock()); |
| 61 | if (server) { |
| 62 | cout << "Received shutdown signal..." << endl; |
| 63 | server->signalStop(); |
| 64 | } else { |
| 65 | cout << "Received shutdown signal but server already stopped..." |
| 66 | << endl; |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | void waitForEnter() { std::cin.ignore(); } |
| 71 |
nothing calls this directly
no test coverage detected