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()
|
w.hub.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
common.Must(w.done.Close())
|
if w.done != nil {
|
||||||
|
common.Must(w.done.Close())
|
||||||
|
}
|
||||||
|
|
||||||
common.Close(w.proxy)
|
common.Close(w.proxy)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue