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

Check that process.domain still exists

This commit is contained in:
Raynos (Jake Verbaten)
2014-04-18 13:54:16 -07:00
parent 4672479b91
commit 7d61feb411

View File

@@ -574,7 +574,9 @@ function try_callback(client, callback, reply) {
} catch (err) {
if (process.domain) {
process.domain.emit('error', err);
process.domain.exit();
if (process.domain) {
process.domain.exit();
}
} else {
client.emit("error", err);
}