Skip to content

Commit

Permalink
Merge pull request #27 from libp2p/fix/close-failed-dial
Browse files Browse the repository at this point in the history
close connections we fail to dial
  • Loading branch information
Stebalien authored Dec 3, 2017
2 parents 1424a22 + 250a23c commit 3093dfd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/transport/websocket/dialer.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (d *dialer) DialContext(ctx context.Context, raddr ma.Multiaddr) (tpt.Conn,

mnc, err := manet.WrapNetConn(NewConn(wscon, nil))
if err != nil {
wscon.Close()
return nil, err
}

Expand Down

0 comments on commit 3093dfd

Please sign in to comment.