1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 09:50:43 +00:00

check if hub is initialized.

This commit is contained in:
Darien Raymond 2017-02-05 08:38:25 +01:00
parent 08bed9e768
commit 05626ca0fe
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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() {