1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 01:40:44 +00: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
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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
}