1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
This commit is contained in:
Darien Raymond 2017-04-20 14:37:53 +02:00
parent 5f4acaa9ea
commit 114f390a69
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -14,10 +14,6 @@ import (
"v2ray.com/core/transport/internet/tls"
)
var (
ErrClosedListener = newError("Listener is closed.")
)
type TCPListener struct {
ctx context.Context
listener *net.TCPListener
@ -107,8 +103,7 @@ func (v *TCPListener) Addr() net.Addr {
}
func (v *TCPListener) Close() error {
v.listener.Close()
return nil
return v.listener.Close()
}
func init() {