diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/installation/download_file.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/code/src/installation/download_file.ts b/editors/code/src/installation/download_file.ts index b51602ef9..fe356c39d 100644 --- a/editors/code/src/installation/download_file.ts +++ b/editors/code/src/installation/download_file.ts | |||
@@ -27,8 +27,7 @@ export async function downloadFile( | |||
27 | readBytes += chunk.length; | 27 | readBytes += chunk.length; |
28 | onProgress(readBytes, totalBytes); | 28 | onProgress(readBytes, totalBytes); |
29 | }) | 29 | }) |
30 | .on("end", resolve) | ||
31 | .on("error", reject) | 30 | .on("error", reject) |
32 | .pipe(fs.createWriteStream(destFilePath)) | 31 | .pipe(fs.createWriteStream(destFilePath).on("close", resolve)) |
33 | ); | 32 | ); |
34 | } | 33 | } |