1
0

Prevent infinite loop when logging fails (#3693)

Prevent infinite loop when logging fails
This commit is contained in:
josh-parris 2017-05-05 22:02:54 +10:00 committed by worktycho
parent 598da23434
commit 05c3e8bed8

View File

@ -119,6 +119,7 @@ void cRoot::Start(std::unique_ptr<cSettingsRepositoryInterface> a_OverridesRepo)
auto fileLogListenerRet = MakeFileListener();
if (!fileLogListenerRet.first)
{
m_TerminateEventRaised = true;
LOGERROR("Failed to open log file, aborting");
return;
}