mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 15:43:21 +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()
|
||||
{
|
||||
if (leasedInProgress == null)
|
||||
throw new InvalidOperationException("Cannot end operation multiple times.");
|
||||
|
||||
leasedInProgress.Return();
|
||||
leasedInProgress?.Return();
|
||||
leasedInProgress = null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user