fix: guard processQueue against concurrent invocations, fix stale process kill reference

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xRangerDE 2026-03-19 19:41:11 +01:00
parent 3af159f8e7
commit 33730fd372

View File

@ -3945,7 +3945,9 @@ ipcMain.handle('start-download', async () => {
saveQueue(downloadQueue); saveQueue(downloadQueue);
emitQueueUpdated(); emitQueueUpdated();
processQueue(); if (!isDownloading) {
void processQueue();
}
return true; return true;
}); });