reset retrycount upon successful connection
This commit is contained in:
parent
1e77c8e554
commit
790ba87979
1 changed files with 1 additions and 0 deletions
1
peer.go
1
peer.go
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue