| 419 | } |
| 420 | |
| 421 | Server::~Server() { |
| 422 | traceScope(); |
| 423 | |
| 424 | stopAsyncFunctors(); |
| 425 | |
| 426 | if (m_sandboxModeRuntime == SANDBOX_NONE) { |
| 427 | m_masterSocket.close(); |
| 428 | } |
| 429 | |
| 430 | waitForThreadAndLog(this, this); |
| 431 | |
| 432 | m_pluginList.clear(); |
| 433 | ScreenRecorder::cleanup(); |
| 434 | Metrics::cleanup(); |
| 435 | ServiceResponder::cleanup(); |
| 436 | CPUInfo::cleanup(); |
| 437 | WindowPositions::cleanup(); |
| 438 | |
| 439 | logln("server terminated"); |
| 440 | |
| 441 | if (m_sandboxModeRuntime == SANDBOX_NONE) { |
| 442 | logln("removing run file"); |
| 443 | File runFile(Defaults::getConfigFileName(Defaults::ConfigServerRun, {{"id", String(getId())}})); |
| 444 | runFile.deleteFile(); |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | void Server::shutdown() { |
| 449 | traceScope(); |
nothing calls this directly
no test coverage detected