1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-06 09:15:37 -05:00

fix nil reference in udp worker

This commit is contained in:
Darien Raymond
2018-02-14 13:41:21 +01:00
parent ccb2a9f168
commit 1e0b35f869

View File

@@ -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
}