Don’t wipe startup message on pausing logging.

This commit is contained in:
James Turner 2020-09-06 14:51:59 +01:00
parent 19ace8f0f9
commit c7f013e7e5

View File

@ -402,6 +402,13 @@ public:
~LogStreamPrivate()
{
removeCallbacks();
// house-keeping, avoid leak warnings if we exit before disabling
// startup logging
{
std::lock_guard<std::mutex> g(m_lock);
clearStartupEntriesLocked();
}
}
std::mutex m_lock;
@ -489,13 +496,6 @@ public:
free(const_cast<char*>(entry.file));
}
} // of main thread loop
// house-keeping, avoid leak warnings if we exit before disabling
// startup logging
{
std::lock_guard<std::mutex> g(m_lock);
clearStartupEntriesLocked();
}
}
bool stop()