mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05: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()
|
||||
}
|
||||
|
||||
common.Must(w.done.Close())
|
||||
if w.done != nil {
|
||||
common.Must(w.done.Close())
|
||||
}
|
||||
|
||||
common.Close(w.proxy)
|
||||
return nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user