mirror of
https://github.com/osukey/osukey.git
synced 2025-06-09 05:19:11 +09:00
Fix potential nullref throw on failed startup
This commit is contained in:
parent
b399f910e4
commit
edb1230111
@ -163,8 +163,11 @@ namespace osu.Game.Database
|
|||||||
|
|
||||||
public void FlushConnections()
|
public void FlushConnections()
|
||||||
{
|
{
|
||||||
foreach (var context in threadContexts.Values)
|
if (threadContexts != null)
|
||||||
context.Dispose();
|
{
|
||||||
|
foreach (var context in threadContexts.Values)
|
||||||
|
context.Dispose();
|
||||||
|
}
|
||||||
|
|
||||||
recycleThreadContexts();
|
recycleThreadContexts();
|
||||||
}
|
}
|
||||||
|
@ -527,7 +527,7 @@ namespace osu.Game
|
|||||||
BeatmapManager?.Dispose();
|
BeatmapManager?.Dispose();
|
||||||
LocalConfig?.Dispose();
|
LocalConfig?.Dispose();
|
||||||
|
|
||||||
contextFactory.FlushConnections();
|
contextFactory?.FlushConnections();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user