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