Bricklayer.Client.Game.Exit C# (CSharp) Method

Exit() public method

public Exit ( ) : void
return void
        public override void Exit()
        {
            //Make sure to explicitly dispose of the network manager so the server knows we have disconnected
            if (NetManager.Client != null)
            {
                NetManager.Disconnect("Client Closed.");
                NetManager.Dispose();
            }
            base.Exit();
        }