simplify connection reuse settings

This commit is contained in:
v2ray committed 2016-06-02 20:52:52 +02:00
1 parent 9a8bc3fc3c
commit ff0cb89efa
8 files changed
+19 -62

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ func (this *Connection) Close() error {
if this == nil || this.conn == nil {
return ErrorClosedConnection
}
if transport.TCPStreamConfig.ConnectionReuse && this.Reusable() {
if transport.IsConnectionReusable() && this.Reusable() {
this.listener.Recycle(this.dest, this.conn)
return nil
}