Updated Bnet Server.
Port From (https://github.com/TrinityCore/TrinityCore)
This commit is contained in:
@@ -32,8 +32,6 @@ namespace Framework.Networking
|
||||
_threads[i].Start();
|
||||
}
|
||||
|
||||
Acceptor.AsyncAcceptSocket(OnSocketOpen);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -64,7 +62,7 @@ namespace Framework.Networking
|
||||
try
|
||||
{
|
||||
TSocketType newSocket = (TSocketType)Activator.CreateInstance(typeof(TSocketType), sock);
|
||||
newSocket.Accept();
|
||||
newSocket.Start();
|
||||
|
||||
_threads[SelectThreadWithMinConnections()].AddSocket(newSocket);
|
||||
}
|
||||
@@ -87,4 +85,4 @@ namespace Framework.Networking
|
||||
return min;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user