You've already forked node-redis
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:
1
index.js
1
index.js
@@ -581,6 +581,7 @@ function try_callback(callback, reply) {
|
|||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (process.domain) {
|
if (process.domain) {
|
||||||
process.domain.emit('error', err);
|
process.domain.emit('error', err);
|
||||||
|
process.domain.exit();
|
||||||
} else {
|
} else {
|
||||||
process.nextTick(function () {
|
process.nextTick(function () {
|
||||||
throw err;
|
throw err;
|
||||||
|
Reference in New Issue
Block a user