Skip to content

Commit

Permalink
Do not squelch retransmit for DTLS Server in finish
Browse files Browse the repository at this point in the history
  • Loading branch information
boks1971 committed Feb 2, 2022
1 parent 61ae442 commit 7726699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handshaker.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ func (s *handshakeFSM) finish(ctx context.Context, c flightConn) (handshakeState
if nextFlight == 0 {
break
}
if s.currentFlight == nextFlight && (nextFlight.isLastRecvFlight() || nextFlight.isLastSendFlight()) {
if nextFlight.isLastRecvFlight() && s.currentFlight == nextFlight {
return handshakeFinished, nil
}
<-retransmitTimer.C
Expand Down

0 comments on commit 7726699

Please sign in to comment.