Close streams

This commit is contained in:
Adria Navarro 2023-06-12 17:34:12 +01:00
parent 2971dfba9d
commit 92a8c97aba
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ export async function decryptFile(
return new Promise<void>(r => {
outputFile.on("finish", () => {
inputFile.close()
outputFile.close()
r()
})
})