Skip to content

Commit

Permalink
chore: don't catch url as error
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Dec 20, 2024
1 parent 6d423f1 commit 6eda2ac
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src-electron/main/downloads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,6 @@ async function processQueue() {
const downloadId = await manager.download({
callbacks: {
onDownloadCancelled: async ({ id }) => {
captureElectronError(url, {
contexts: {
fn: {
name: 'src-electron/downloads processQueue onDownloadCancelled',
params: {
directory: saveDir,
isDownloadErrorExpected: await isDownloadErrorExpected(),
saveAsFilename: destFilename,
window: mainWindow?.id,
},
url,
},
},
});

sendToWindow(mainWindow, 'downloadCancelled', { id });
activeDownloadIds.splice(activeDownloadIds.indexOf(url + saveDir), 1);
processQueue(); // Process next download
Expand Down

0 comments on commit 6eda2ac

Please sign in to comment.