mirror of https://github.com/v2ray/v2ray-core
check if hub is initialized.
parent
08bed9e768
commit
05626ca0fe
|
@ -245,8 +245,10 @@ func (w *udpWorker) Start() error {
|
|||
}
|
||||
|
||||
func (w *udpWorker) Close() {
|
||||
w.hub.Close()
|
||||
w.cancel()
|
||||
if w.hub != nil {
|
||||
w.hub.Close()
|
||||
w.cancel()
|
||||
}
|
||||
}
|
||||
|
||||
func (w *udpWorker) monitor() {
|
||||
|
|
Loading…
Reference in New Issue