invertika_game.Game.GameHandler.deletePendingClient C# (CSharp) Method

deletePendingClient() public method

public deletePendingClient ( ISL.Server.Network.NetComputer client ) : void
client ISL.Server.Network.NetComputer
return void
        public void deletePendingClient(NetComputer client)
        {
            GameClient computer=(GameClient)client;

            // Something might have changed since it was inserted
            if(computer.status!=(int)AccountClientStatus.CLIENT_QUEUED)
                return;

            MessageOut msg=new MessageOut(Protocol.GPMSG_CONNECT_RESPONSE);
            msg.writeInt8((int)ErrorMessage.ERRMSG_TIME_OUT);

            // The computer will be deleted when the disconnect event is processed
            computer.disconnect(msg);
        }