mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-30 07:46:41 -04:00
fix nil reference in udp worker
This commit is contained in:
parent
ccb2a9f168
commit
1e0b35f869
@ -263,7 +263,10 @@ func (w *udpWorker) Close() error {
|
|||||||
w.hub.Close()
|
w.hub.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if w.done != nil {
|
||||||
common.Must(w.done.Close())
|
common.Must(w.done.Close())
|
||||||
|
}
|
||||||
|
|
||||||
common.Close(w.proxy)
|
common.Close(w.proxy)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user