aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/worldserver/Main.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp
index 1ed4ade155e..2f6cf319c8a 100644
--- a/src/server/worldserver/Main.cpp
+++ b/src/server/worldserver/Main.cpp
@@ -317,17 +317,6 @@ extern int main(int argc, char** argv)
ClearOnlineAccounts();
});
- // Launch CliRunnable thread
- std::shared_ptr<std::thread> cliThread;
-#ifdef _WIN32
- if (sConfigMgr->GetBoolDefault("Console.Enable", true) && (m_ServiceStatus == -1)/* need disable console in service mode*/)
-#else
- if (sConfigMgr->GetBoolDefault("Console.Enable", true))
-#endif
- {
- cliThread.reset(new std::thread(CliThread), &ShutdownCLIThread);
- }
-
// Set server online (allow connecting now)
LoginDatabase.DirectPExecute("UPDATE realmlist SET flag = flag & ~%u, population = 0 WHERE id = '%u'", REALM_FLAG_OFFLINE, realm.Id.Realm);
realm.PopulationLevel = 0.0f;
@@ -346,6 +335,17 @@ extern int main(int argc, char** argv)
TC_LOG_INFO("server.worldserver", "%s (worldserver-daemon) ready...", GitRevision::GetFullVersion());
+ // Launch CliRunnable thread
+ std::shared_ptr<std::thread> cliThread;
+#ifdef _WIN32
+ if (sConfigMgr->GetBoolDefault("Console.Enable", true) && (m_ServiceStatus == -1)/* need disable console in service mode*/)
+#else
+ if (sConfigMgr->GetBoolDefault("Console.Enable", true))
+#endif
+ {
+ cliThread.reset(new std::thread(CliThread), &ShutdownCLIThread);
+ }
+
WorldUpdateLoop();
// Shutdown starts here