Skip to content

Commit

Permalink
Fix BGP reconnect (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
taktv6 authored and czerwonk committed Jan 21, 2020
1 parent ece9aa0 commit b858842
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions protocols/bgp/server/fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,8 @@ func (fsm *FSM) startConnectRetryTimer() {
}

func (fsm *FSM) resetConnectRetryTimer() {
if !fsm.connectRetryTimer.Reset(fsm.connectRetryTime) {
<-fsm.connectRetryTimer.C
}
stopTimer(fsm.connectRetryTimer)
fsm.connectRetryTimer.Reset(fsm.connectRetryTime)
}

func (fsm *FSM) resetConnectRetryCounter() {
Expand Down

0 comments on commit b858842

Please sign in to comment.