This commit is contained in:
Nikita Mikhaylov 2019-07-31 17:18:59 +03:00
parent ad4459c4a2
commit cac7972837

View File

@ -1707,11 +1707,10 @@ std::shared_ptr<TextLog> Context::getTextLog()
{
auto lock = getLock();
if (!shared->system_logs) {
if (auto log = shared->system_logs->text_log.lock()) {
if (!shared->system_logs)
if (auto log = shared->system_logs->text_log.lock())
return log;
}
}
return {};
}