summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-07 18:34:04 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-07 18:34:04 +0300
commita0a3ee5c2652cd1f1aacaacaae5f3a67293018d3 (patch)
tree31b6fc1ce9264a23779060bacfeaec91ef5869a6 /src
parentc21a25c76d6acf1c587f18b83123d0b7598c4cfa (diff)
jobd: fix reconnection to master
Diffstat (limited to 'src')
-rwxr-xr-xsrc/jobd.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jobd.js b/src/jobd.js
index bb912fc..b5d605f 100755
--- a/src/jobd.js
+++ b/src/jobd.js
@@ -205,6 +205,7 @@ function connectToMaster() {
setTimeout(() => {
connect().catch(error => {
logger.warn(`connectToMaster: connection failed`, error)
+ tryToConnect()
})
}, now ? 0 : config.get('master_reconnect_timeout') * 1000)
}