Don't count current channel when testing for slowness (#584)
This commit is contained in:
parent
66ee332446
commit
3501d983ec
@ -248,7 +248,7 @@ func (er *encodedReader) checkSlowChannel(num int) (closed bool) {
|
||||
// check how many buffer channels are already empty
|
||||
ec := 0
|
||||
for i := range er.eps {
|
||||
if !er.eps[i].closed && len(er.eps[i].ch) == 0 {
|
||||
if i != num && !er.eps[i].closed && len(er.eps[i].ch) == 0 {
|
||||
ec++
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user