🐛 Fix length of encryption header

This commit is contained in:
C-3PO 2018-07-08 20:55:52 +02:00
parent 4c9270d59c
commit 7ee70e8a2b
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -21,8 +21,8 @@ export default async function extractFileStream(file: ISsnFileEntry, inputStream
const encryptionHeader = curStream.read(12); const encryptionHeader = curStream.read(12);
if (encryptionHeader === null) { if (encryptionHeader === null) {
//need to wait until data is ready for reading //need to wait until data is ready for reading
await waitReadableLength(curStream, 30); await waitReadableLength(curStream, 12);
curStream.read(30); curStream.read(12);
} }
} }