Browse Source

fix nil reference in udp worker

Darien Raymond 7 years ago
parent
commit
1e0b35f869
1 changed files with 4 additions and 1 deletions
  1. 4 1
      app/proxyman/inbound/worker.go

+ 4 - 1
app/proxyman/inbound/worker.go

@@ -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
 }