Skip to content

Commit

Permalink
Fix domain not exited
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Mar 5, 2015
1 parent d894514 commit 7955e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runner.js
Expand Up @@ -370,6 +370,7 @@ internals.protect = function (item, state, callback) {
return;
}

domain.exit();
isFirst = false;
clearTimeout(timeoutId);
setImmediate(function () {
Expand Down Expand Up @@ -405,7 +406,6 @@ internals.protect = function (item, state, callback) {
domain.enter();
item.fn.call(null, function (err) {

domain.exit();
finish(err, 'done');
});
});
Expand Down

0 comments on commit 7955e16

Please sign in to comment.