diff options
author | Anthony Birkett <anthony@a-birkett.com> | 2015-03-31 15:50:03 +0200 |
---|---|---|
committer | Anthony Birkett <anthony@a-birkett.com> | 2015-04-01 01:03:37 +0200 |
commit | 51891b766c733220b5267be1b4bcf6f04717e976 (patch) | |
tree | 6af0b9ac70329a7e83ff5d68f548a6081c32b633 /src/Root.cpp | |
parent | QtBiomeVisualiser: Fixed compilation and INI loading. (diff) | |
download | cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.gz cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.bz2 cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.lz cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.xz cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.zst cuberite-51891b766c733220b5267be1b4bcf6f04717e976.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Root.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index 27d87c717..87bc29627 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -84,7 +84,10 @@ void cRoot::InputThread(cRoot & a_Params) if (m_TerminateEventRaised || !std::cin.good()) { // We have come here because the std::cin has received an EOF / a terminate signal has been sent, and the server is still running; stop the server: - a_Params.m_bStop = true; + if (m_RunAsService) // HACK: Dont kill if running as a service + { + a_Params.m_bStop = true; + } } } @@ -268,6 +271,13 @@ void cRoot::Start(void) +void cRoot::SetStopping(bool a_Stopping) +{ + m_bStop = a_Stopping; +} + + + void cRoot::LoadGlobalSettings() { |