Skip to content

Commit ade6356

Browse files
committed
close file
1 parent ec4b6e4 commit ade6356

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/osinstaller/CxInstaller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ async function downloadFile(downloadURLPath: string, filePath: string): Promise<
204204
});
205205

206206
console.log(`File downloaded successfully to ${filePath}`);
207+
fileStream.close();
207208

208209
} catch (error) {
209210
console.error(`Error during file download: ${error.message}`);

0 commit comments

Comments
 (0)