1
0

Fixed looping when unable to bind port (#3621)

Fixes #3593
This commit is contained in:
johnsoch 2017-03-17 07:44:28 -05:00 committed by Mattes D
parent e70b399435
commit f269565e73

View File

@ -247,6 +247,13 @@ void cRoot::Start(std::unique_ptr<cSettingsRepositoryInterface> a_OverridesRepo)
LOG("Shutting down server...");
m_Server->Shutdown();
} // if (m_Server->Start()
else
{
cRoot::m_TerminateEventRaised = true;
#ifdef _WIN32
EnableMenuItem(ConsoleMenu, SC_CLOSE, MF_ENABLED); // Re-enable close button
#endif
}
delete m_MojangAPI; m_MojangAPI = nullptr;