reset retrycount upon successful connection

This commit is contained in:
Todd T. Fries 2013-09-26 16:52:05 -05:00
parent 1e77c8e554
commit 790ba87979

View file

@ -1234,6 +1234,7 @@ func newOutboundPeer(s *server, addr string, persistent bool) *peer {
// Connection was successful so log it and start peer.
log.Infof("[SRVR] Connected to %s", conn.RemoteAddr())
p.conn = conn
p.retrycount = 0
p.Start()
} else {
p.server.donePeers <- p