mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-18 02:16:10 -05:00
Release stream when conn ends
This commit is contained in:
parent
36bf645199
commit
18069d377c
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user