diff --git a/node_modules/vfs-child/parent.js b/node_modules/vfs-child/parent.js index 2c1dc7a9..d51fca64 100644 --- a/node_modules/vfs-child/parent.js +++ b/node_modules/vfs-child/parent.js @@ -49,11 +49,11 @@ function Parent(fsOptions) { } function done(err, vfs) { - if (!child) return; + if (!callback) return; child.removeListener("error", done); child.on("error", function ignore(err) {}); - child = null; callback(err, vfs); + callback = null; } }