1
0
Fork 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
1 changed files with 7 additions and 0 deletions

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;