Merge pull request #2230 from lucas-clemente/improve-no-outstanding-packets-logging

improve logging of loss detection timer cancelation
This commit is contained in:
Marten Seemann
2019-11-24 21:06:40 +07:00
committed by GitHub

View File

@@ -347,7 +347,7 @@ func (h *sentPacketHandler) setLossDetectionTimer() {
// Cancel the alarm if no packets are outstanding
if !h.hasOutstandingPackets() {
h.logger.Debugf("setLossDetectionTimer: canceling. Bytes in flight: %d", h.bytesInFlight)
h.logger.Debugf("Canceling loss detection timer. No packets in flight.")
h.alarm = time.Time{}
return
}