mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
check if hub is initialized.
This commit is contained in:
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
Block a user