From 5bb984d4109c93693503ac64beeefd644deb9a84 Mon Sep 17 00:00:00 2001 From: Sucukdeluxe Date: Sun, 1 Mar 2026 22:51:17 +0100 Subject: [PATCH] Fix validating-stuck watchdog aborting before unrestrict timeout 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 --- package.json | 2 +- src/main/download-manager.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d3e4209..5b575e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "real-debrid-downloader", - "version": "1.4.74", + "version": "1.4.75", "description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)", "main": "build/main/main/main.js", "author": "Sucukdeluxe", diff --git a/src/main/download-manager.ts b/src/main/download-manager.ts index 804410e..282b5f5 100644 --- a/src/main/download-manager.ts +++ b/src/main/download-manager.ts @@ -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;