Index: src/liblogger/TLogFileData.cpp =================================================================== diff -u -r4a4360ee83d1051b3bfa3c42f93ca581b81d1744 -rd89ed8602b3992f26835fe68cb6e89c6d1270044 --- src/liblogger/TLogFileData.cpp (.../TLogFileData.cpp) (revision 4a4360ee83d1051b3bfa3c42f93ca581b81d1744) +++ src/liblogger/TLogFileData.cpp (.../TLogFileData.cpp) (revision d89ed8602b3992f26835fe68cb6e89c6d1270044) @@ -52,8 +52,11 @@ void TLogFileData::PushLogEntry(std::wstring strLine) { boost::unique_lock lock(m_mutex); - m_listEntries.emplace_back(strLine); - SetEvent(m_spHasEntriesEvent.get()); + if(m_spLogFile) + { + m_listEntries.emplace_back(strLine); + SetEvent(m_spHasEntriesEvent.get()); + } } void TLogFileData::StoreLogEntries()