🐛 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 <mark.omarov.work@gmail.com>

Co-authored-by: Mark Omarov <mark.omarov.work@gmail.com>
This commit is contained in:
Mark Omarov
2022-02-02 07:36:06 +09:00
committed by GitHub
parent 0bda7a8500
commit 34f8bce292

View File

@@ -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)
})