forked from quic-go/quic-go
move logging of connection closing to the session
This commit is contained in:
@@ -248,7 +248,6 @@ func (c *client) establishSecureConnection() error {
|
||||
go func() {
|
||||
runErr = c.session.run() // returns as soon as the session is closed
|
||||
close(errorChan)
|
||||
c.logger.Infof("Connection %s closed.", c.srcConnID)
|
||||
if runErr != handshake.ErrCloseSessionForRetry && runErr != errCloseSessionForNewVersion {
|
||||
c.conn.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user