1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

exit the domain after emitting. Thanks, cxreg!

This commit is contained in:
Forrest L Norvell
2013-10-17 11:46:34 -07:00
parent e7099717aa
commit 2e8c6dae85

View File

@@ -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;