diff options
Diffstat (limited to 'src/Root.cpp')
-rw-r--r-- | src/Root.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index 30644a741..0fb2777d5 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -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; |