Browse Source

Fix available mux picker in reverse portal (#274)

Xray9 4 years ago
parent
commit
c345d4818e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/reverse/portal.go

+ 3 - 0
app/reverse/portal.go

@@ -157,6 +157,9 @@ func (p *StaticMuxPicker) PickAvailable() (*mux.ClientWorker, error) {
 		if w.draining {
 			continue
 		}
+		if w.client.Closed() {
+			continue
+		}
 		if w.client.ActiveConnections() < minConn {
 			minConn = w.client.ActiveConnections()
 			minIdx = i