Skip to content
Snippets Groups Projects
Commit 3b7b8f91 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed a crash

parent 7e39889f
Branches
Tags
1 merge request!170Release
......@@ -115,8 +115,8 @@ func (m *Manager) processUncheckedRounds(checkInterval time.Duration, backoffTab
func isRoundCheckDue(tries uint64, ts time.Time, backoffTable [cappedTries]time.Duration) bool {
now := netTime.Now()
if tries > uint64(len(backoffTable)) {
tries = uint64(len(backoffTable))
if tries >= uint64(len(backoffTable)) {
tries = uint64(len(backoffTable))-1
}
roundCheckTime := ts.Add(backoffTable[tries])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment