private void OnDisable() { connectCancellationToken?.Dispose(); connectCancellationToken = null; game?.Disconnect(); game?.Dispose(); game = null; }
/// <inheritdoc /> public Task OnCommandAsync(PacketConnection context, string argument) { _game.ThrowIfNotHost(Command); return(_game.Disconnect()); }