Skip to content

Commit 7d61feb

Browse files
committed
Check that process.domain still exists
1 parent 4672479 commit 7d61feb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,9 @@ function try_callback(client, callback, reply) {
574574
} catch (err) {
575575
if (process.domain) {
576576
process.domain.emit('error', err);
577-
process.domain.exit();
577+
if (process.domain) {
578+
process.domain.exit();
579+
}
578580
} else {
579581
client.emit("error", err);
580582
}

0 commit comments

Comments
 (0)