Skip to content
Permalink
Browse files

Create ServerThread earlier in the startup process

  • Loading branch information
nerzhul committed Mar 31, 2019
1 parent b55fc3d commit 64bdd4b5095a6cd0a55ffe4d842a91d5086d0e04
Showing with 1 addition and 3 deletions.
  1. +1 −3 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);

0 comments on commit 64bdd4b

Please sign in to comment.