Merge pull request #8015 from Icinga/bugfix/streamlogger-flush-lock

StreamLogger#Flush(): lock self
This commit is contained in:
Henrik Triem 2020-06-09 14:26:50 +02:00 committed by GitHub
commit f2765d54ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,8 @@ void StreamLogger::FlushLogTimerHandler()
void StreamLogger::Flush()
{
ObjectLock oLock (this);
if (m_Stream)
m_Stream->flush();
}