mirror of
https://github.com/ppy/osu.git
synced 2025-02-01 00:39:11 +08:00
Add comment explaining dispose logic
This commit is contained in:
parent
5b094f8e1d
commit
d6cdde552d
@ -41,6 +41,7 @@ namespace osu.Game.Rulesets
|
|||||||
{
|
{
|
||||||
base.Dispose(isDisposing);
|
base.Dispose(isDisposing);
|
||||||
|
|
||||||
|
// ensures any potential database operations are finalised before game destruction.
|
||||||
foreach (var c in configCache.Values)
|
foreach (var c in configCache.Values)
|
||||||
(c as IDisposable)?.Dispose();
|
(c as IDisposable)?.Dispose();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user