fix: really don't read new frames before the previous frame has been sent. (#875)

fix feb77c4396

Signed-off-by: chujDK <1768485949@qq.com>
This commit is contained in:
chujDK
2025-08-22 08:02:53 +08:00
committed by GitHub
parent 114606c993
commit d835e16337

View File

@@ -504,9 +504,9 @@ module.exports = syrup.serial()
frameProducer.on('readable', function next() {
var frame = frameProducer.nextFrame()
if (frame) {
Promise.settle([broadcastSet.keys().map(function(id) {
Promise.settle(broadcastSet.keys().map(function(id) {
return broadcastSet.get(id).onFrame(frame)
})]).then(next)
})).then(next)
}
else {
frameProducer.needFrame()