private void HandleClientLeft(NetIncomingMessage netIncomingMessage) { var clientToRemove = _clientManager.RemoveClient(netIncomingMessage.SenderEndPoint); if (clientToRemove == null) { Tracer.PrintWarning(string.Format("Try to remove Client {0} which is not registired.", netIncomingMessage.SenderEndPoint)); } else { _sessionPool.HandleClientLeft(clientToRemove); Tracer.PrintInfo(string.Format("Client {0}, id={1} name='{2}' left the server", clientToRemove.EndPoint, clientToRemove.Id, clientToRemove.Name)); } }