mirror of
https://github.com/ppy/osu
synced 2025-01-20 13:00:54 +00:00
Fix incorrect disposal
This commit is contained in:
parent
b1b6723826
commit
40cd998f99
@ -269,14 +269,8 @@ namespace osu.Game.Database
|
||||
}
|
||||
}
|
||||
|
||||
private string? getRulesetShortNameFromLegacyID(long rulesetId)
|
||||
{
|
||||
if (efContextFactory == null)
|
||||
return null;
|
||||
|
||||
using (var efContext = efContextFactory.Get())
|
||||
return efContext.RulesetInfo.First(r => r.ID == rulesetId)?.ShortName;
|
||||
}
|
||||
private string? getRulesetShortNameFromLegacyID(long rulesetId) =>
|
||||
efContextFactory?.Get().RulesetInfo.First(r => r.ID == rulesetId)?.ShortName;
|
||||
|
||||
/// <summary>
|
||||
/// Flush any active contexts and block any further writes.
|
||||
|
Loading…
Reference in New Issue
Block a user