Increased detectArchitecture() timeout (#965)

The timeout for detechArchitecture() is sometimes too low when devices are on wifi network connections and even sometimes over USB. The command can take up to 3 seconds to execute and return. Currently the timeout is set to 1000 ms and setting it to 5000 ms seems to be a good compromise.

Co-authored-by: Scott Downing <Scott.Downing@marc-cain.de>
This commit is contained in:
GimpArm 2020-05-22 20:06:11 +02:00 committed by GitHub
parent e86b211cd1
commit 08dc1dd9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,7 +210,7 @@ module.exports.detectArchitecture = function (target) {
// To fix it, either unplug & replug device, or restart adb server.
return Promise.race([
helper(),
timeout(1000, new CordovaError(
timeout(5000, new CordovaError(
'Device communication timed out. Try unplugging & replugging the device.'
))
]).catch(err => {