From 44c40174a10792cfdcae265d383321671b5cecc3 Mon Sep 17 00:00:00 2001 From: Charles Lehner Date: Sun, 10 Jul 2016 00:39:16 -0400 Subject: [PATCH] Provide callback with closeNext --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index f73883f..2f86104 100644 --- a/index.js +++ b/index.js @@ -60,6 +60,7 @@ module.exports = function(filename, opts) { cb(null, buffer); } else { closeNext = true; + _cb = function () {} cb(null, buffer.slice(0, count)); } }