summaryrefslogtreecommitdiff
path: root/lib/internal/cluster/child.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/cluster/child.js')
-rw-r--r--lib/internal/cluster/child.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/cluster/child.js b/lib/internal/cluster/child.js
index e7bddc1d0b..097c6dafae 100644
--- a/lib/internal/cluster/child.js
+++ b/lib/internal/cluster/child.js
@@ -100,7 +100,7 @@ cluster._getServer = function(obj, options, cb) {
cluster.worker.state = 'listening';
const address = obj.address();
message.act = 'listening';
- message.port = address && address.port || options.port;
+ message.port = (address && address.port) || options.port;
send(message);
});
};