🚑 Fix not waiting for read to be complete

This commit is contained in:
C-3PO 2018-07-08 22:06:11 +02:00
parent 0a23394b56
commit dd9df23a5e
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -18,7 +18,7 @@ export default async function extractFileStream(file: ISsnFileEntry, inputStream
const decryptTransform = decryptStream(file.decryptionKeys); const decryptTransform = decryptStream(file.decryptionKeys);
curStream = curStream.pipe(decryptTransform); curStream = curStream.pipe(decryptTransform);
//skip encryption header //skip encryption header
readBytesFromStream(curStream, 12); await readBytesFromStream(curStream, 12);
} }
if (!skipDecompression) { if (!skipDecompression) {