From 08dc1dd9b9cd46ba45429787257933c1d99e7304 Mon Sep 17 00:00:00 2001 From: GimpArm Date: Fri, 22 May 2020 20:06:11 +0200 Subject: [PATCH] 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 --- bin/templates/cordova/lib/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/templates/cordova/lib/build.js b/bin/templates/cordova/lib/build.js index 36aee6c0..e199239d 100644 --- a/bin/templates/cordova/lib/build.js +++ b/bin/templates/cordova/lib/build.js @@ -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 => {