reset the PTO count when dropping a packet number space

This commit is contained in:
Marten Seemann
2020-03-05 08:48:33 +07:00
parent ce64c6b301
commit cef5416356
2 changed files with 3 additions and 1 deletions

View File

@@ -159,6 +159,7 @@ func (h *sentPacketHandler) dropPackets(encLevel protocol.EncryptionLevel) {
panic(fmt.Sprintf("Cannot drop keys for encryption level %s", encLevel))
}
h.setLossDetectionTimer()
h.ptoCount = 0
h.ptoMode = SendNone
}