Parcourir la source

async connection close

v2ray il y a 9 ans
Parent
commit
9a8bc3fc3c
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      transport/hub/connection_cache.go

+ 1 - 1
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
 }