remove unneeded check for decryption errors in session

This commit is contained in:
Marten Seemann
2019-01-06 17:34:24 +07:00
parent 8ac77be934
commit 9025133936

View File

@@ -802,11 +802,7 @@ func (s *session) handleCloseError(closeErr closeError) error {
if closeErr.remote {
return nil
}
if quicErr.ErrorCode == qerr.DecryptionFailure {
// TODO(#943): send a stateless reset
return nil
}
// otherwise send a CONNECTION_CLOSE
return s.sendConnectionClose(quicErr)
}