🐛 Fix length of encryption header
This commit is contained in:
parent
4c9270d59c
commit
7ee70e8a2b
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ export default async function extractFileStream(file: ISsnFileEntry, inputStream
|
|||
const encryptionHeader = curStream.read(12);
|
||||
if (encryptionHeader === null) {
|
||||
//need to wait until data is ready for reading
|
||||
await waitReadableLength(curStream, 30);
|
||||
curStream.read(30);
|
||||
await waitReadableLength(curStream, 12);
|
||||
curStream.read(12);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue