浏览代码

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)
 		callback(source, data)
 	}
 	}
 	this.Lock()
 	this.Lock()
+	inboundRay.InboundInput().Release()
+	inboundRay.InboundOutput().Release()
 	delete(this.conns, destString)
 	delete(this.conns, destString)
 	this.Unlock()
 	this.Unlock()
 }
 }