فهرست منبع

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()
 }