mirror of
https://github.com/osukey/osukey.git
synced 2025-05-08 07:07:18 +09: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…
x
Reference in New Issue
Block a user