FedP2P/closewrapper.go

13 lines
153 B
Go

package torrent
import "net"
type closeWrapper struct {
net.Conn
closer func() error
}
func (me closeWrapper) Close() error {
return me.closer()
}