mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-12-02 23:43:44 +00:00
notify progressTraffic to quit
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -39,8 +39,12 @@ func (uih *UnixInboundHandler) Start() {
|
||||
return
|
||||
}
|
||||
func (uih *UnixInboundHandler) progressTraffic(rece <-chan net.Conn) {
|
||||
|
||||
for {
|
||||
conn := <-rece
|
||||
conn, notclosed := <-rece
|
||||
if !notclosed {
|
||||
return
|
||||
}
|
||||
go func(conn net.Conn) {
|
||||
ctx, cancel := context.WithCancel(uih.ctx)
|
||||
if len(uih.tag) > 0 {
|
||||
|
||||
Reference in new issue
Block a user