From c497fd50e82cdc2928eff0bdd520db496374ba02 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 3 Mar 2021 02:16:12 +0300 Subject: fix worker->master connection --- src/jobd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3