mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-01 23:15:21 -05:00
check if hub is initialized.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user