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

            return(_game.Disconnect());
        }