Fix validating-stuck watchdog aborting before unrestrict timeout
Build and Release / build (push) Has been cancelled

The validating-stuck timeout (45s) was shorter than the unrestrict
timeout (60s), causing items to be endlessly aborted and retried
before the debrid API call could complete. Now uses unrestrict
timeout + 15s buffer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Sucukdeluxe
2026-03-01 22:51:17 +01:00
co-authored by Claude Opus 4.6
parent 1825e8ba04
commit 5bb984d410
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -3026,8 +3026,8 @@ export class DownloadManager extends EventEmitter {
return;
}
// Per-item validating watchdog: abort items stuck in "validating" for >45s
const VALIDATING_STUCK_MS = 45000;
// Per-item validating watchdog: abort items stuck longer than the unrestrict timeout + buffer
const VALIDATING_STUCK_MS = getUnrestrictTimeoutMs() + 15000;
for (const active of this.activeTasks.values()) {
if (active.abortController.signal.aborted) {
continue;