You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Check that process.domain
still exists
This commit is contained in:
4
index.js
4
index.js
@@ -574,7 +574,9 @@ function try_callback(client, 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();
|
if (process.domain) {
|
||||||
|
process.domain.exit();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
client.emit("error", err);
|
client.emit("error", err);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user