diff options
author | Loïc Blot <loic.blot@unix-experience.fr> | 2019-03-25 16:54:27 +0100 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2019-03-31 20:49:39 +0200 |
commit | 64bdd4b5095a6cd0a55ffe4d842a91d5086d0e04 (patch) | |
tree | e10f01f5e25aaf92d5c0dd102496489d57d5bdf3 | |
parent | b55fc3d773e2049d99a01ea2aa4e37774e81410b (diff) | |
download | minetest-64bdd4b5095a6cd0a55ffe4d842a91d5086d0e04.tar.gz minetest-64bdd4b5095a6cd0a55ffe4d842a91d5086d0e04.tar.bz2 minetest-64bdd4b5095a6cd0a55ffe4d842a91d5086d0e04.zip |
Create ServerThread earlier in the startup process
-rw-r--r-- | src/server.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server.cpp b/src/server.cpp index 172bb4744..869498965 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -220,6 +220,7 @@ Server::Server( m_itemdef(createItemDefManager()), m_nodedef(createNodeDefManager()), m_craftdef(createCraftDefManager()), + m_thread(new ServerThread(this)), m_uptime(0), m_clients(m_con), m_admin_chat(iface), @@ -321,9 +322,6 @@ void Server::init() if (!loadGameConfAndInitWorld(m_path_world, m_gamespec)) throw ServerError("Failed to initialize world"); - // Create server thread - m_thread = new ServerThread(this); - // Create emerge manager m_emerge = new EmergeManager(this); |