Explorar o código

Release stream when conn ends

v2ray %!s(int64=9) %!d(string=hai) anos
pai
achega
18069d377c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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()
 }