소스 검색

Release stream when conn ends

v2ray 9 년 전
부모
커밋
18069d377c
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      transport/hub/udp_server.go

+ 2 - 0
transport/hub/udp_server.go

@@ -66,6 +66,8 @@ func (this *UDPServer) handleConnection(destString string, inboundRay ray.Inboun
 		callback(source, data)
 	}
 	this.Lock()
+	inboundRay.InboundInput().Release()
+	inboundRay.InboundOutput().Release()
 	delete(this.conns, destString)
 	this.Unlock()
 }