소스 검색

async connection close

v2ray 9 년 전
부모
커밋
9a8bc3fc3c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 }