1
0
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:
Darien Raymond
2018-11-16 15:42:18 +01:00
parent 48cac1733f
commit 1089a887e0
2 changed files with 71 additions and 2 deletions

View File

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