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");
|
||||
|
||||
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...");
|
||||
|
Loading…
Reference in New Issue
Block a user