Skip to content

Commit 8cbf079

Browse files
authored
fix: uncaught exception during differential downloading via multipleRangDownloader (electron-userland#9248)
1 parent cfc4f36 commit 8cbf079

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/fuzzy-kings-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"electron-updater": patch
3+
---
4+
5+
fix: uncaught exception during differential downloading via multipleRangDownloader

packages/electron-updater/src/differentialDownloader/multipleRangeDownloader.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ function doExecuteTasks(differentialDownloader: DifferentialDownloader, options:
6969
const requestOptions = differentialDownloader.createRequestOptions()
7070
requestOptions.headers!.Range = `bytes=${task.start}-${task.end - 1}`
7171
const request = differentialDownloader.httpExecutor.createRequest(requestOptions, response => {
72+
response.on("error", reject)
73+
7274
if (!checkIsRangesSupported(response, reject)) {
7375
return
7476
}

0 commit comments

Comments
 (0)