check for errors after handling each previously undecryptable packet

This commit is contained in:
Marten Seemann
2021-01-20 10:37:04 +08:00
parent 53b1cbb501
commit ccf8f6c0f4

View File

@@ -568,12 +568,12 @@ runLoop:
if processed := s.handlePacketImpl(p); processed {
processedUndecryptablePacket = true
}
}
// Don't set timers and send packets if the packet made us close the session.
select {
case closeErr = <-s.closeChan:
break runLoop
default:
// Don't set timers and send packets if the packet made us close the session.
select {
case closeErr = <-s.closeChan:
break runLoop
default:
}
}
} else if !processedUndecryptablePacket {
select {