Prevent infinite loop when logging fails (#3693)
Prevent infinite loop when logging fails
This commit is contained in:
parent
598da23434
commit
05c3e8bed8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user