MCPcopy Create free account
hub / github.com/apohl79/audiogridder / ~Server

Method ~Server

Server/Source/Server.cpp:421–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421Server::~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
448void Server::shutdown() {
449 traceScope();

Callers

nothing calls this directly

Calls 6

waitForThreadAndLogFunction · 0.85
getConfigFileNameFunction · 0.85
deleteFileMethod · 0.80
cleanupFunction · 0.50
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected