diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-05-07 18:34:04 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-05-07 18:34:04 +0300 |
commit | a0a3ee5c2652cd1f1aacaacaae5f3a67293018d3 (patch) | |
tree | 31b6fc1ce9264a23779060bacfeaec91ef5869a6 /src | |
parent | c21a25c76d6acf1c587f18b83123d0b7598c4cfa (diff) |
jobd: fix reconnection to master
Diffstat (limited to 'src')
-rwxr-xr-x | src/jobd.js | 1 |
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) } |