Fixed not checking for sync on socket.

This commit is contained in:
hondacrx
2017-10-29 10:02:32 -04:00
parent 19d27aa6f1
commit c0431f8a17
2 changed files with 11 additions and 11 deletions
+1 -2
View File
@@ -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();