Close streams
This commit is contained in:
parent
2971dfba9d
commit
92a8c97aba
|
@ -116,6 +116,8 @@ export async function decryptFile(
|
|||
|
||||
return new Promise<void>(r => {
|
||||
outputFile.on("finish", () => {
|
||||
inputFile.close()
|
||||
outputFile.close()
|
||||
r()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue