diff options
-rw-r--r-- | server/fsm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/fsm.go b/server/fsm.go index 6e565a29..6656d544 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -336,7 +336,7 @@ func (fsm *FSM) connectLoop() error { case <-ticker.C: connect() case <-fsm.getActiveCh: - time.Sleep(time.Duration(r.Intn(tick)+MIN_CONNECT_RETRY) * time.Second) + time.Sleep(time.Duration(r.Intn(MIN_CONNECT_RETRY)+MIN_CONNECT_RETRY) * time.Second) connect() ticker = time.NewTicker(time.Duration(tick) * time.Second) } |