summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)
}