From 9a8bc3fc3c0a73861d10e6a667568e1e7f77a5c8 Mon Sep 17 00:00:00 2001 From: v2ray Date: Thu, 2 Jun 2016 02:40:46 +0200 Subject: [PATCH] async connection close --- transport/hub/connection_cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/hub/connection_cache.go b/transport/hub/connection_cache.go index 51fbf93f..0d17ca11 100644 --- a/transport/hub/connection_cache.go +++ b/transport/hub/connection_cache.go @@ -108,7 +108,7 @@ func FindFirstValid(list []*AwaitingConnection) int { if !conn.Expired() { return idx } - conn.conn.Close() + go conn.conn.Close() } return -1 }