mirror of https://github.com/v2ray/v2ray-core
fix nil reference in udp worker
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…
Reference in New Issue