Esempio n. 1
0
        private async Task KickPlayer()
        {
            var game = await GetGameSession();

            await game.LeaveGame(this);

            await _sink.Close();

            DeactivateOnIdle();
        }
Esempio n. 2
0
        private async Task KickPlayer()
        {
            _sendKeepAliveTimer?.Dispose();
            _sendKeepAliveTimer = null;
            _worldTimeSyncTimer?.Dispose();
            _worldTimeSyncTimer = null;

            var game = await GetGameSession();

            await game.LeaveGame(this);

            await _sink.Close();

            DeactivateOnIdle();
        }
Esempio n. 3
0
 public Task Kick()
 {
     return(_sink.Close());
 }