Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

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 e16a8dd commit 8510e22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 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 8510e22

Please sign in to comment.