Skip to content

Commit

Permalink
close connections we fail to wrap
Browse files Browse the repository at this point in the history
Maybe related to #21. Probably not.
  • Loading branch information
Stebalien committed Nov 29, 2017
1 parent 16f6845 commit 2d2035f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/transport/websocket/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ func (l *listener) Accept() (tpt.Conn, error) {

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

Expand Down

0 comments on commit 2d2035f

Please sign in to comment.