Example #1
0
        private async Task Quit(bool close)
        {
            isCalledQuit = true;

            if (host != null)
            {
                host.Destroy();
                host = null;
            }
            if (hub != null)
            {
                await hub.Dispose();

                hub = null;
            }

            isCleanuped = true;

            if (close)
            {
                await Server.Program.Stop();

                this.Close();
            }
        }