summaryrefslogtreecommitdiffhomepage
path: root/pkg/server
diff options
context:
space:
mode:
authorwanghonghao <wanghonghao@bytedance.com>2018-06-28 17:48:14 +0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2018-07-15 08:32:15 +0900
commitbcf31a33d3674ef13a43e5ab55cffe258b837cbf (patch)
treec7ecb33ce3698d84a39fd215abdbdebf80a401d0 /pkg/server
parent42cc25da7ae4a9114ffb5031e4071a307f7b8465 (diff)
fsm: Connect to bgp peers regardless of whether the peers are restarting
Diffstat (limited to 'pkg/server')
-rw-r--r--pkg/server/fsm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go
index 855066f4..03ae7575 100644
--- a/pkg/server/fsm.go
+++ b/pkg/server/fsm.go
@@ -466,7 +466,7 @@ func (fsm *FSM) connectLoop() error {
}).Debug("stop connect loop")
return nil
case <-timer.C:
- if fsm.state == bgp.BGP_FSM_ACTIVE && !fsm.pConf.GracefulRestart.State.PeerRestarting {
+ if fsm.state == bgp.BGP_FSM_ACTIVE {
go connect()
}
case <-fsm.getActiveCh: