feat(downloads): limit concurrent downloads to 3

This commit is contained in:
vicrodh committed 2026-01-14 02:42:22 -06:00
1 parent 6361f2e3df
commit 540844de9f
3 files changed
+27 -7

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ export async function startDownloadEventListeners(): Promise<void> {
try {
const unlistenStarted = await listen<{ trackId: number }>('download:started', (event) => {
console.log('Download started:', event.payload.trackId);
setDownloadState(event.payload.trackId, { status: 'queued', progress: 0 });
setDownloadState(event.payload.trackId, { status: 'downloading', progress: 0 });
});
const unlistenProgress = await listen<{