From 18069d377c062b13be7e67b67b8428b0a19ed670 Mon Sep 17 00:00:00 2001 From: v2ray Date: Mon, 2 May 2016 14:03:58 +0200 Subject: [PATCH] Release stream when conn ends --- transport/hub/udp_server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transport/hub/udp_server.go b/transport/hub/udp_server.go index 1fd930929..dc3d46a07 100644 --- a/transport/hub/udp_server.go +++ b/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() }