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:
co-authored by
Claude Opus 4.6
parent
3af159f8e7
commit
33730fd372
+3
-1
@@ -3945,7 +3945,9 @@ ipcMain.handle('start-download', async () => {
|
||||
saveQueue(downloadQueue);
|
||||
emitQueueUpdated();
|
||||
|
||||
processQueue();
|
||||
if (!isDownloading) {
|
||||
void processQueue();
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user