From 684ec73beb7059b6e12d955ca3788547fabb98a0 Mon Sep 17 00:00:00 2001 From: Olivier ORABONA Date: Mon, 22 Dec 2014 04:25:59 +0100 Subject: [PATCH] Fixed as per [#6032](https://github.com/joyent/node/issues/6032) --- src/XzStream.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XzStream.coffee b/src/XzStream.coffee index 747dc04..ba6abfc 100644 --- a/src/XzStream.coffee +++ b/src/XzStream.coffee @@ -166,7 +166,7 @@ class XzStream extends Transform @_offset = 0 @_buffer = new Buffer @_chunkSize - if availOutAfter is 0 + if availOutAfter is 0 or availInAfter > 0 inOff += (availInBefore - availInAfter) availInBefore = availInAfter