You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
check process.domain is STILL currDomain
This commit is contained in:
7
index.js
7
index.js
@@ -573,9 +573,10 @@ function try_callback(client, callback, reply) {
|
|||||||
callback(null, reply);
|
callback(null, reply);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (process.domain) {
|
if (process.domain) {
|
||||||
process.domain.emit('error', err);
|
var currDomain = process.domain;
|
||||||
if (process.domain) {
|
currDomain.emit('error', err);
|
||||||
process.domain.exit();
|
if (process.domain === currDomain) {
|
||||||
|
currDomain.exit();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
client.emit("error", err);
|
client.emit("error", err);
|
||||||
|
Reference in New Issue
Block a user