Fixed server failure to open any port not aborting the server.
This commit is contained in:
parent
19d463ae1c
commit
de7f5fc794
10
src/Root.cpp
10
src/Root.cpp
@ -181,8 +181,8 @@ void cRoot::Start(void)
|
|||||||
IniFile.WriteFile("settings.ini");
|
IniFile.WriteFile("settings.ini");
|
||||||
|
|
||||||
LOGD("Finalising startup...");
|
LOGD("Finalising startup...");
|
||||||
m_Server->Start();
|
if (m_Server->Start())
|
||||||
|
{
|
||||||
m_WebAdmin->Start();
|
m_WebAdmin->Start();
|
||||||
|
|
||||||
#if !defined(ANDROID_NDK)
|
#if !defined(ANDROID_NDK)
|
||||||
@ -218,6 +218,12 @@ void cRoot::Start(void)
|
|||||||
|
|
||||||
LOG("Shutting down server...");
|
LOG("Shutting down server...");
|
||||||
m_Server->Shutdown();
|
m_Server->Shutdown();
|
||||||
|
} // if (m_Server->Start())
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_bStop = true;
|
||||||
|
}
|
||||||
|
|
||||||
delete m_MojangAPI; m_MojangAPI = nullptr;
|
delete m_MojangAPI; m_MojangAPI = nullptr;
|
||||||
|
|
||||||
LOGD("Shutting down deadlock detector...");
|
LOGD("Shutting down deadlock detector...");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user