mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 05:53:19 +02:00
🐛 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:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user