1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Simplify disposal

This commit is contained in:
Dan Balasescu 2022-02-10 14:21:33 +09:00
parent a3896a8ebd
commit f7fb7825cc

View File

@ -3,6 +3,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using osu.Framework.Allocation;
using osu.Framework.Graphics;
@ -54,9 +55,7 @@ namespace osu.Game.Rulesets.UI
protected override void Dispose(bool isDisposing)
{
base.Dispose(isDisposing);
if (spectatorClient != null && gameplayState != null)
spectatorClient.EndPlaying(gameplayState);
spectatorClient?.EndPlaying(gameplayState);
}
protected override void Update()