From 9897916cba5b45300dff373ec437d3c3ac47d5bf Mon Sep 17 00:00:00 2001 From: Mark Omarov Date: Tue, 1 Feb 2022 13:13:30 +0900 Subject: [PATCH] :bug: Fix: Increase PID retrieval timeout for edge-cases 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 --- 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 a12eadd0e9..dd83f9526d 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) })