summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-04-03 10:35:41 +0200
committerMattes D <github@xoft.cz>2015-04-03 10:35:41 +0200
commit11f5ee27abd47204c6f973cec43e397732192545 (patch)
tree6af0b9ac70329a7e83ff5d68f548a6081c32b633 /src/Root.cpp
parentQtBiomeVisualiser: Fixed compilation and INI loading. (diff)
parentWorking as a Windows service. Starts and stops correctly. (diff)
downloadcuberite-11f5ee27abd47204c6f973cec43e397732192545.tar
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.gz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.bz2
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.lz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.xz
cuberite-11f5ee27abd47204c6f973cec43e397732192545.tar.zst
cuberite-11f5ee27abd47204c6f973cec43e397732192545.zip
Diffstat (limited to 'src/Root.cpp')
-rw-r--r--src/Root.cpp12
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()
{