diff options
Diffstat (limited to 'src/Root.cpp')
-rw-r--r-- | src/Root.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index 4a6abaf37..f15bfd366 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -165,14 +165,17 @@ void cRoot::Start(void) LOGD("Starting Authenticator..."); m_Authenticator.Start(IniFile); - IniFile.WriteFile("settings.ini"); - LOGD("Starting worlds..."); StartWorlds(); - LOGD("Starting deadlock detector..."); - dd.Start(); + if (IniFile.GetValueSetB("DeadlockDetect", "Enabled", true)) + { + LOGD("Starting deadlock detector..."); + dd.Start(IniFile.GetValueSetI("DeadlockDetect", "IntervalSec", 20)); + } + IniFile.WriteFile("settings.ini"); + LOGD("Finalising startup..."); m_Server->Start(); |