torrent/closewrapper.go

13 lines
153 B
Go
Raw Normal View History

2018-11-21 06:02:22 +00:00
package torrent
import "net"
type closeWrapper struct {
net.Conn
closer func() error
}
func (me closeWrapper) Close() error {
return me.closer()
}