Skip to content

Commit

Permalink
Add a log for debugging download queue
Browse files Browse the repository at this point in the history
  • Loading branch information
tranxuanthang committed May 24, 2024
1 parent 134fa8d commit 12affd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/composables/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const addToQueue = (trackIds) => {
downloadQueue.value.push(...trackIds)
totalCount.value += trackIds.length

console.log(`Added ${totalCount.value} tracks to download queue`)

// Defer the call to downloadNext using setTimeout
if (!currentItem.value) {
setTimeout(() => {
Expand Down

0 comments on commit 12affd4

Please sign in to comment.