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(); } }
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(); } }