private async Task KickPlayer() { var game = await GetGameSession(); await game.LeaveGame(this); await _sink.Close(); DeactivateOnIdle(); }
private async Task KickPlayer() { _sendKeepAliveTimer?.Dispose(); _sendKeepAliveTimer = null; _worldTimeSyncTimer?.Dispose(); _worldTimeSyncTimer = null; var game = await GetGameSession(); await game.LeaveGame(this); await _sink.Close(); DeactivateOnIdle(); }
public Task Kick() { return(_sink.Close()); }