Unsubscribe from API state change event.

This commit is contained in:
naoey 2017-12-21 18:00:10 +05:30
parent 63f2436220
commit 644aaa8167

View File

@ -197,6 +197,9 @@ namespace osu.Game.Screens.Select.Leaderboards
if (osuGame != null)
osuGame.Ruleset.ValueChanged -= handleRulesetChange;
if (api != null)
api.OnStateChange -= handleApiStateChange;
}
private GetScoresRequest getScoresRequest;