Fixed not checking for sync on socket.
This commit is contained in:
@@ -84,9 +84,8 @@ namespace Game.Network
|
||||
AsyncReadWithCallback(InitializeHandler);
|
||||
}
|
||||
|
||||
public void InitializeHandler(object sender, SocketAsyncEventArgs args)
|
||||
public void InitializeHandler(SocketAsyncEventArgs args)
|
||||
{
|
||||
args.Completed -= InitializeHandler;
|
||||
if (args.SocketError != SocketError.Success)
|
||||
{
|
||||
CloseSocket();
|
||||
|
||||
Reference in New Issue
Block a user