mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-11-11 11:22:57 -08:00
fix nil reference in udp worker
This commit is contained in:
1 file changed
+4
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user