Skip to content

Commit

Permalink
Merge pull request #2594 from lucas-clemente/fix-early-session-debug-…
Browse files Browse the repository at this point in the history
…message

fix debug message when returning an early session
  • Loading branch information
marten-seemann committed Jun 11, 2020
2 parents 05514ab + 63e1153 commit 34ce5bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions client.go
Expand Up @@ -81,8 +81,12 @@ func DialAddrEarly(
tlsConf *tls.Config,
config *Config,
) (EarlySession, error) {
defer utils.Logger.WithPrefix(utils.DefaultLogger, "client").Debugf("Returning early session")
return dialAddrContext(context.Background(), addr, tlsConf, config, true)
sess, err := dialAddrContext(context.Background(), addr, tlsConf, config, true)
if err != nil {
return nil, err
}
utils.Logger.WithPrefix(utils.DefaultLogger, "client").Debugf("Returning early session")
return sess, nil
}

// DialAddrContext establishes a new QUIC connection to a server using the provided context.
Expand Down

0 comments on commit 34ce5bb

Please sign in to comment.