diff --git a/adm-zip.js b/adm-zip.js index 3bf58f2..a1ca2cf 100644 --- a/adm-zip.js +++ b/adm-zip.js @@ -376,7 +376,9 @@ module.exports = function (/**String*/ input, /** object */ options) { } }); } else { - next(); + process.nextTick(() => { + next(); + }); } } else { callback(true, undefined); diff --git a/package-lock.json b/package-lock.json index a8f86a2..252ea6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "adm-zip", - "version": "0.5.6", + "version": "0.5.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "adm-zip", - "version": "0.5.6", + "version": "0.5.9", "license": "MIT", "devDependencies": { "chai": "^4.3.4",