diff --git a/Tranga/TrangaTasks/UpdateLibrariesTask.cs b/Tranga/TrangaTasks/UpdateLibrariesTask.cs index 2ecf6f2..17824a4 100644 --- a/Tranga/TrangaTasks/UpdateLibrariesTask.cs +++ b/Tranga/TrangaTasks/UpdateLibrariesTask.cs @@ -14,11 +14,7 @@ public class UpdateLibrariesTask : TrangaTask protected override HttpStatusCode ExecuteTask(TaskManager taskManager, Logger? logger, CancellationToken? cancellationToken = null) { - if (cancellationToken?.IsCancellationRequested ?? false) - return HttpStatusCode.RequestTimeout; - foreach(LibraryManager lm in taskManager.settings.libraryManagers) - lm.UpdateLibrary(); - return HttpStatusCode.OK; + return HttpStatusCode.BadRequest; } public override TrangaTask Clone()