MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / closeMain

Method closeMain

Telegram/SourceFiles/logs.cpp:84–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82 }
83
84 void closeMain() {
85 QMutexLocker lock(_logsMutex(LogDataMain));
86 WritingEntryScope scope;
87
88 const auto file = files[LogDataMain].get();
89 if (file && file->isOpen()) {
90 file->close();
91 }
92 }
93
94 bool instanceChecked() {
95 return reopen(LogDataMain, 0, QString());

Callers 1

closeMainFunction · 0.80

Calls 3

_logsMutexFunction · 0.85
getMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected