mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Simplify disposal
This commit is contained in:
parent
a3896a8ebd
commit
f7fb7825cc
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user