Skip to content
Browse files

child plugins needs a callback

  • Loading branch information...
1 parent cbf1f64 commit aeded08e2d9faa9b767d892bc6434590b39c4028 @fjakobs fjakobs committed May 16, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 child/child-ext.js
View
6 child/child-ext.js
@@ -6,7 +6,9 @@ module.exports = function setup(options, imports, register) {
assert.equal(typeof options.gid, "number", "option 'gid' is required");
assert(options.root, "option 'root' is required");
- register(null, {
- "vfs": require("vfs/child")(options)
+ require("vfs/child")(options, function(err, vfs) {
+ register(err, {
+ "vfs": vfs
+ });
});
}

0 comments on commit aeded08

Please sign in to comment.
Something went wrong with that request. Please try again.