mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Cancel request on disposal for safety
This commit is contained in:
parent
923acfbeaf
commit
ccd7c1a17d
@ -134,5 +134,10 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
|||||||
this.api = api;
|
this.api = api;
|
||||||
updateDisplay();
|
updateDisplay();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Dispose(bool isDisposing)
|
||||||
|
{
|
||||||
|
getScoresRequest?.Cancel();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user