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) {