Fix a race condition in OpenDreamInstaller

This commit is contained in:
Jordan Dominion
2024-08-11 01:30:49 -04:00
parent 89d70be782
commit 5b4719c128
@@ -157,6 +157,8 @@ namespace Tgstation.Server.Host.Components.Engine
{
Logger.LogTrace("OD repo seems to already exist, attempting load and fetch...");
repo = await repositoryManager.LoadRepository(cancellationToken);
if (repo == null)
throw new JobException("Can't load OpenDream repository! Please delete cache from disk!");
await repo!.FetchOrigin(
progressSection1,