diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-03 02:16:12 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-03 02:16:12 +0300 |
commit | c497fd50e82cdc2928eff0bdd520db496374ba02 (patch) | |
tree | 09a34da1d0b462d1784171b6ca5d7e0725266b46 | |
parent | bd712c4e8842f44dc546f587bd237c456a92e9d1 (diff) |
fix worker->master connection
-rwxr-xr-x | src/jobd.js | 2 |
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 } |