aboutsummaryrefslogtreecommitdiff
path: root/src/server/authserver
diff options
context:
space:
mode:
authorDDuarte <dnpd.dd@gmail.com>2016-03-28 02:02:29 +0100
committerDDuarte <dnpd.dd@gmail.com>2016-03-28 02:02:29 +0100
commit980f28d2ce099f524abdb6faed3fe59ce4c0963a (patch)
tree7353c04f6773901452c6e604cbf899d8f791627e /src/server/authserver
parent6487e2f2d6a1ddbeff77362219658376b8a3f9f0 (diff)
Core/Network: Change SocketMgr.StartNetwork to take the thread count by arg instead of config
AuthSocketMgr doesn't need "Network.Threads" config Fixes "Missing name Network.Threads in config file authserver.conf" Ref #16859
Diffstat (limited to 'src/server/authserver')
-rw-r--r--src/server/authserver/Server/AuthSocketMgr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/authserver/Server/AuthSocketMgr.h b/src/server/authserver/Server/AuthSocketMgr.h
index a16b7d405b9..9923f2b2f11 100644
--- a/src/server/authserver/Server/AuthSocketMgr.h
+++ b/src/server/authserver/Server/AuthSocketMgr.h
@@ -32,9 +32,9 @@ public:
return instance;
}
- bool StartNetwork(boost::asio::io_service& service, std::string const& bindIp, uint16 port) override
+ bool StartNetwork(boost::asio::io_service& service, std::string const& bindIp, uint16 port, int threadCount = 1) override
{
- if (!BaseSocketMgr::StartNetwork(service, bindIp, port))
+ if (!BaseSocketMgr::StartNetwork(service, bindIp, port, threadCount))
return false;
_acceptor->AsyncAcceptWithCallback<&AuthSocketMgr::OnSocketAccept>();