summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-03 02:16:12 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-03 02:16:12 +0300
commitc497fd50e82cdc2928eff0bdd520db496374ba02 (patch)
tree09a34da1d0b462d1784171b6ca5d7e0725266b46
parentbd712c4e8842f44dc546f587bd237c456a92e9d1 (diff)
fix worker->master connection
-rwxr-xr-xsrc/jobd.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jobd.js b/src/jobd.js
index 97a1f05..26b8aa5 100755
--- a/src/jobd.js
+++ b/src/jobd.js
@@ -364,7 +364,7 @@ function connectToMaster() {
const port = config.get('master_port')
const host = config.get('master_host')
- if (!host || port) {
+ if (!host || !port) {
logger.debug('connectToMaster: master host or port is not defined')
return
}