diff options
Diffstat (limited to 'lib/connections/quic_dial.go')
-rw-r--r-- | lib/connections/quic_dial.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connections/quic_dial.go b/lib/connections/quic_dial.go index d4b83c649..ed5dff62f 100644 --- a/lib/connections/quic_dial.go +++ b/lib/connections/quic_dial.go @@ -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() } |