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:
Audrius Butkevicius
2020-05-01 08:14:28 +01:00
committed by GitHub
parent bdb25f9ba5
commit ac7338f1f2
5 changed files with 203 additions and 16 deletions
+1 -1
View File
@@ -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()
}