feat(downloads): limit concurrent downloads to 3
This commit is contained in:
1 parent
6361f2e3df
commit
540844de9f
3 files changed
+27
-7
No files matched your search
@@ -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<{
|
||||
|
||||
Reference in new issue
Block a user