1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 23:52:57 +08:00

Cancel request on dispose

This commit is contained in:
Andrei Zavatski 2019-10-13 16:22:10 +03:00
parent 2f209d1dfa
commit 328b4d6863

View File

@ -194,5 +194,12 @@ namespace osu.Game.Overlays.Comments
{
background.Colour = colours.Gray2;
}
protected override void Dispose(bool isDisposing)
{
request?.Cancel();
loadCancellation?.Cancel();
base.Dispose(isDisposing);
}
}
}