Fix available mux picker in reverse portal (#274)

This commit is contained in:
Xray9 2021-03-01 15:26:53 +08:00 committed by GitHub
parent 7fb1f65354
commit c345d4818e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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