diff --git a/package.json b/package.json index e252d8c..e29f4ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "real-debrid-downloader", - "version": "1.4.95", + "version": "1.4.96", "description": "Real-Debrid Downloader Desktop (Electron + React + TypeScript)", "main": "build/main/main/main.js", "author": "Sucukdeluxe", diff --git a/src/main/update.ts b/src/main/update.ts index bdcdd8b..fe11efc 100644 --- a/src/main/update.ts +++ b/src/main/update.ts @@ -910,6 +910,7 @@ export async function installLatestUpdate( : await checkGitHubUpdate(safeRepo); if (check.error) { + activeUpdateAbortController = null; safeEmitProgress(onProgress, { stage: "error", percent: null, @@ -920,6 +921,7 @@ export async function installLatestUpdate( return { started: false, message: check.error }; } if (!check.updateAvailable) { + activeUpdateAbortController = null; safeEmitProgress(onProgress, { stage: "error", percent: null, @@ -962,6 +964,14 @@ export async function installLatestUpdate( let candidates = buildDownloadCandidates(safeRepo, effectiveCheck); if (candidates.length === 0) { + activeUpdateAbortController = null; + safeEmitProgress(onProgress, { + stage: "error", + percent: null, + downloadedBytes: 0, + totalBytes: null, + message: "Setup-Asset nicht gefunden" + }); return { started: false, message: "Setup-Asset nicht gefunden" }; }