mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-11 05:09:49 +02:00
Fix "startup" never completing if UpdateChaptersDownloadedBeforeStarting is set
Some checks failed
Docker Image CI / build (push) Has been cancelled
Some checks failed
Docker Image CI / build (push) Has been cancelled
This commit is contained in:
@@ -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!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user