forked from quic-go/quic-go
fix error handling when receiving post handshake messages
This commit is contained in:
@@ -499,7 +499,11 @@ func (h *cryptoSetup) handlePostHandshakeMessage() {
|
||||
}()
|
||||
|
||||
if err := h.conn.HandlePostHandshakeMessage(); err != nil {
|
||||
h.onError(<-alertChan, err.Error())
|
||||
select {
|
||||
case <-h.closeChan:
|
||||
case alert := <-alertChan:
|
||||
h.onError(alert, err.Error())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user