From 16238c590b7f66c9608f23f507722c5c5af9bb08 Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 29 Jul 2023 18:20:41 +0200 Subject: [PATCH] Remove UpdateLibrariesTask --- Tranga/TrangaTasks/UpdateLibrariesTask.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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()