Skip to content

Commit

Permalink
check if hub is initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Feb 5, 2017
1 parent 08bed9e commit 05626ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/proxyman/inbound/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 05626ca

Please sign in to comment.