mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-03-21 05:49:37 +00:00
Fix available mux picker in reverse portal (#274)
This commit is contained in:
parent
7fb1f65354
commit
c345d4818e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue