Disconnect a crashed client

This commit is contained in:
manio143 2015-06-26 09:40:14 +02:00
parent 7eff08d533
commit fe70cea080

View File

@ -283,6 +283,10 @@ namespace TrueCraft
e.SetBuffer(null, 0, 0); e.SetBuffer(null, 0, 0);
break; break;
} }
if(Connection != null)
if (!Connection.Connected && !Disconnected)
Server.DisconnectClient(this);
} }
private void ProcessNetwork(SocketAsyncEventArgs e) private void ProcessNetwork(SocketAsyncEventArgs e)