mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
Release stream when conn ends
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user