fix nil reference in udp worker

pull/865/head
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
1 changed files with 4 additions and 1 deletions

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
}