Fix "startup" never completing if UpdateChaptersDownloadedBeforeStarting is set
Some checks failed
Docker Image CI / build (push) Has been cancelled

This commit is contained in:
2025-10-04 05:03:44 +02:00
parent 6a7f3285d1
commit 8e4afb43f8

View File

@@ -45,8 +45,8 @@ public static class Tranga
AddWorker(UpdateChaptersDownloadedWorker); AddWorker(UpdateChaptersDownloadedWorker);
Log.Info("Waiting for startup to complete..."); Log.Info("Waiting for startup to complete...");
while (new List<BaseWorker>() { CleanupMangaconnectorIdsWithoutConnector, UpdateChaptersDownloadedWorker, CleanupMangaCoversWorker}.Any(w => w.State < WorkerExecutionState.Completed)) while (RunningWorkers.Any(w => w.Key.State < WorkerExecutionState.Completed))
Thread.Sleep(100); Thread.Sleep(1000);
Log.Info("Start complete!"); Log.Info("Start complete!");
} }