From 0a23394b56a8a828a3f55bdbb7b6e822454101f8 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 22:04:01 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Add=20debug=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/streams/readBytesFromStream.ts | 1 + 1 file changed, 1 insertion(+) 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();