diff options
Diffstat (limited to 'server/fsm.go')
-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 c25fd1f3..86390354 100644 --- a/server/fsm.go +++ b/server/fsm.go @@ -208,7 +208,7 @@ func (fsm *FSM) connectLoop() error { ticker.Stop() connect := func() { - if bgp.FSMState(fsm.peerConfig.BgpNeighborCommonState.State) == bgp.BGP_FSM_ACTIVE { + if fsm.state == bgp.BGP_FSM_ACTIVE { var host string addr := fsm.peerConfig.NeighborAddress |