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

View file

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