exit framer loop early if no space is left in packet

This commit is contained in:
Lucas Clemente
2016-09-16 21:32:57 +02:00
parent 2970ee3ac5
commit e8ef0de5b4
3 changed files with 10 additions and 5 deletions

View File

@@ -140,10 +140,10 @@ func (m *streamsMap) RoundRobinIterate(fn streamLambda) error {
if err != nil {
return err
}
m.roundRobinIndex = (m.roundRobinIndex + 1) % numStreams
if !cont {
break
}
m.roundRobinIndex = (m.roundRobinIndex + 1) % numStreams
}
return nil
}