lib/connections: Update quic (#6591)
* lib/connections: Update quic * Fix freebsd builds? * Undo x/sys and gopsutil update * Update quic_dial.go * Update quic_listen.go
This commit is contained in:
@@ -80,7 +80,7 @@ func (d *quicDialer) Dial(ctx context.Context, _ protocol.DeviceID, uri *url.URL
|
||||
stream, err := session.OpenStreamSync(ctx)
|
||||
if err != nil {
|
||||
// It's ok to close these, this does not close the underlying packetConn.
|
||||
_ = session.Close()
|
||||
_ = session.CloseWithError(1, err.Error())
|
||||
if createdConn != nil {
|
||||
_ = createdConn.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user