Skip to content

Commit

Permalink
Prevent infinite loop when logging fails (cuberite#3693)
Browse files Browse the repository at this point in the history
Prevent infinite loop when logging fails
  • Loading branch information
josh-parris authored and worktycho committed May 5, 2017
1 parent 598da23 commit 05c3e8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Root.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05c3e8b

Please sign in to comment.