mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 19:45:43 +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