From 2e8c6dae8531b308af9102af47d98b74a14209dc Mon Sep 17 00:00:00 2001 From: Forrest L Norvell Date: Thu, 17 Oct 2013 11:46:34 -0700 Subject: [PATCH] exit the domain after emitting. Thanks, cxreg! --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 3867f79555..f915b460c4 100644 --- a/index.js +++ b/index.js @@ -581,6 +581,7 @@ function try_callback(callback, reply) { } catch (err) { if (process.domain) { process.domain.emit('error', err); + process.domain.exit(); } else { process.nextTick(function () { throw err;