diff --git a/src/ssn/streams/readBytesFromStream.ts b/src/ssn/streams/readBytesFromStream.ts index 145f935..f93adf1 100644 --- a/src/ssn/streams/readBytesFromStream.ts +++ b/src/ssn/streams/readBytesFromStream.ts @@ -4,6 +4,7 @@ import * as stream from 'stream'; function waitReadableLength(inputStream: stream.Readable, minLength: number): Promise { return new Promise((resolve) => { const interval = setInterval(() => { + console.log('waiting...', inputStream.readableLength, minLength); if (inputStream.readableLength >= minLength) { clearInterval(interval); resolve();