From d835e16337a029241bcade8ab68b636ba9839d77 Mon Sep 17 00:00:00 2001 From: chujDK <32593305+chujDK@users.noreply.github.com> Date: Fri, 22 Aug 2025 08:02:53 +0800 Subject: [PATCH] fix: really don't read new frames before the previous frame has been sent. (#875) fix https://github.com/DeviceFarmer/stf/commit/feb77c4396d4209de48779fa855daa382cc11f28 Signed-off-by: chujDK <1768485949@qq.com> --- lib/units/device/plugins/screen/stream.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/units/device/plugins/screen/stream.js b/lib/units/device/plugins/screen/stream.js index 99fdda15..b3fe5f76 100644 --- a/lib/units/device/plugins/screen/stream.js +++ b/lib/units/device/plugins/screen/stream.js @@ -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()