Update lastReconnect

This commit is contained in:
Josh Deprez 2024-04-21 13:46:27 +10:00
parent b1d71d3525
commit e7d67344d3
Signed by: josh
SSH Key Fingerprint: SHA256:zZji7w1Ilh2RuUpbQcqkLPrqmRwpiCSycbF2EfKm6Kw
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ func (p *Peer) Handle(ctx context.Context) error {
break
}
lastReconnect = time.Now()
sendRetries = 0
lastSend = time.Now()
if _, err := p.Send(p.Transport.NewOpenReqPacket(nil)); err != nil {