Prechádzať zdrojové kódy

Release stream when conn ends

v2ray 9 rokov pred
rodič
commit
18069d377c
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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()
 }