From 6d5618a1f7a916b8700e356f8049dd015a23f7a7 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 28 Jun 2023 22:46:22 +0200 Subject: [PATCH] Infinite loop on unavailable chapters --- Tranga/TrangaTask.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tranga/TrangaTask.cs b/Tranga/TrangaTask.cs index 8c03b5a..4888044 100644 --- a/Tranga/TrangaTask.cs +++ b/Tranga/TrangaTask.cs @@ -101,6 +101,10 @@ public abstract class TrangaTask { this.lastExecuted = DateTime.Now; this.state = ExecutionState.Success; + }else if (statusCode is HttpStatusCode.NotFound) + { + this.state = ExecutionState.Waiting; + this.lastExecuted = DateTime.MaxValue; } else {