mirror of
https://github.com/ppy/osu.git
synced 2024-09-22 09:27:34 +08:00
Make disposal of tracker operation idempotent
This commit is contained in:
parent
adcef19ab2
commit
18b309a195
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user