mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
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:
parent
e86b211cd1
commit
08dc1dd9b9
2
bin/templates/cordova/lib/build.js
vendored
2
bin/templates/cordova/lib/build.js
vendored
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user