From 34f8bce29254973a17fa47eed320dfc42a99cfe2 Mon Sep 17 00:00:00 2001 From: Mark Omarov Date: Wed, 2 Feb 2022 07:36:06 +0900 Subject: [PATCH] :bug: Fix: Increase PID retrieval timeout for edge-cases (#419) Some devices (Pixel 4XL) need more time to retrieve PID, in such cases when the retrieval failed - the whole stream is shutting down, therefore, connection with Minicap is lost which leads to constant empty screen on the Web UI. Signed-off-by: Mark Omarov Co-authored-by: Mark Omarov --- lib/units/device/plugins/screen/stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/units/device/plugins/screen/stream.js b/lib/units/device/plugins/screen/stream.js index a12eadd0..dd83f952 100644 --- a/lib/units/device/plugins/screen/stream.js +++ b/lib/units/device/plugins/screen/stream.js @@ -270,7 +270,7 @@ module.exports = syrup.serial() return new Promise(function(resolve) { this.on('pid', pidListener = resolve) }.bind(this)).bind(this) - .timeout(2000) + .timeout(5000) .finally(function() { this.removeListener('pid', pidListener) })