From dd9df23a5e29538cbd7c8a6ecc11d4bf74b5c4d9 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 22:06:11 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Fix=20not=20waiting=20for=20read?= =?UTF-8?q?=20to=20be=20complete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/extractFileStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/extractFileStream.ts b/src/ssn/extractFileStream.ts index 04f7f1c..ad68e7d 100644 --- a/src/ssn/extractFileStream.ts +++ b/src/ssn/extractFileStream.ts @@ -18,7 +18,7 @@ export default async function extractFileStream(file: ISsnFileEntry, inputStream const decryptTransform = decryptStream(file.decryptionKeys); curStream = curStream.pipe(decryptTransform); //skip encryption header - readBytesFromStream(curStream, 12); + await readBytesFromStream(curStream, 12); } if (!skipDecompression) {