From 92a8c97aba082877d788a7f8e3f60ce296c210b6 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Mon, 12 Jun 2023 17:34:12 +0100 Subject: [PATCH] Close streams --- packages/backend-core/src/security/encryption.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/backend-core/src/security/encryption.ts b/packages/backend-core/src/security/encryption.ts index 29a8274c54..e4d4048590 100644 --- a/packages/backend-core/src/security/encryption.ts +++ b/packages/backend-core/src/security/encryption.ts @@ -116,6 +116,8 @@ export async function decryptFile( return new Promise(r => { outputFile.on("finish", () => { + inputFile.close() + outputFile.close() r() }) })