mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-03 11:09:08 -04:00
consider closed worker is full. fixes #1414
This commit is contained in:
@@ -35,7 +35,7 @@ func (m *ClientManager) Dispatch(ctx context.Context, link *transport.Link) erro
|
||||
}
|
||||
}
|
||||
|
||||
return newError("unable to find an available mux client")
|
||||
return newError("unable to find an available mux client").AtWarning()
|
||||
}
|
||||
|
||||
type WorkerPicker interface {
|
||||
@@ -274,7 +274,7 @@ func (m *ClientWorker) IsClosing() bool {
|
||||
}
|
||||
|
||||
func (m *ClientWorker) IsFull() bool {
|
||||
if m.IsClosing() {
|
||||
if m.IsClosing() || m.Closed() {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user