From 33730fd372dcb5af571d15a6d7fd7f7b71d3f726 Mon Sep 17 00:00:00 2001 From: xRangerDE Date: Thu, 19 Mar 2026 19:41:11 +0100 Subject: [PATCH] fix: guard processQueue against concurrent invocations, fix stale process kill reference Co-Authored-By: Claude Opus 4.6 (1M context) --- src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 2aa57a6..b86cba4 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3945,7 +3945,9 @@ ipcMain.handle('start-download', async () => { saveQueue(downloadQueue); emitQueueUpdated(); - processQueue(); + if (!isDownloading) { + void processQueue(); + } return true; });