server: don't try to connect right after fsm state becomes active

solves gobgpd <=> gobgpd connectivity problem.

Signed-off-by: ISHIDA Wataru <[email protected]>
This commit is contained in:
ISHIDA Wataru
2015-04-27 09:44:03 +00:00
parent 99cccf9812
commit 91cb8ea23f
-1
View File
@@ -793,7 +793,6 @@ func (peer *Peer) connectLoop() error {
case <-ticker.C:
connect()
case <-peer.getActiveCh:
connect()
ticker = time.NewTicker(time.Duration(tick) * time.Second)
}
}