From 644aaa81679d00b0292386898835f1356976185b Mon Sep 17 00:00:00 2001 From: naoey Date: Thu, 21 Dec 2017 18:00:10 +0530 Subject: [PATCH] Unsubscribe from API state change event. --- osu.Game/Screens/Select/Leaderboards/Leaderboard.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/osu.Game/Screens/Select/Leaderboards/Leaderboard.cs b/osu.Game/Screens/Select/Leaderboards/Leaderboard.cs index 3636115227..52b152b42f 100644 --- a/osu.Game/Screens/Select/Leaderboards/Leaderboard.cs +++ b/osu.Game/Screens/Select/Leaderboards/Leaderboard.cs @@ -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;