1
0
Fork 0

Fixed server failure to open any port not aborting the server.

This commit is contained in:
Mattes D 2015-01-27 13:57:35 +01:00
parent 19d463ae1c
commit de7f5fc794
1 changed files with 35 additions and 29 deletions

View File

@ -181,8 +181,8 @@ void cRoot::Start(void)
IniFile.WriteFile("settings.ini");
LOGD("Finalising startup...");
m_Server->Start();
if (m_Server->Start())
{
m_WebAdmin->Start();
#if !defined(ANDROID_NDK)
@ -218,6 +218,12 @@ void cRoot::Start(void)
LOG("Shutting down server...");
m_Server->Shutdown();
} // if (m_Server->Start())
else
{
m_bStop = true;
}
delete m_MojangAPI; m_MojangAPI = nullptr;
LOGD("Shutting down deadlock detector...");