fix nil reference in udp worker

This commit is contained in:
Darien Raymond committed 2018-02-14 13:41:21 +01:00
1 parent ccb2a9f168
commit 1e0b35f869
1 file changed
+4 -1
+4 -1
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
}