1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Make disposal of tracker operation idempotent

This commit is contained in:
Bartłomiej Dach 2021-01-23 16:02:51 +01:00
parent adcef19ab2
commit 18b309a195

View File

@ -49,10 +49,7 @@ namespace osu.Game.Screens.OnlinePlay
private void endOperation() private void endOperation()
{ {
if (leasedInProgress == null) leasedInProgress?.Return();
throw new InvalidOperationException("Cannot end operation multiple times.");
leasedInProgress.Return();
leasedInProgress = null; leasedInProgress = null;
} }
} }