Config.xml angepasst, Kaufabwicklung funktioniert jetzt reibungslos
This commit is contained in:
6
platforms/android/cordova/lib/retry.js
vendored
6
platforms/android/cordova/lib/retry.js
vendored
@@ -21,7 +21,9 @@
|
||||
|
||||
/* jshint node: true */
|
||||
|
||||
"use strict";
|
||||
'use strict';
|
||||
|
||||
var events = require('cordova-common').events;
|
||||
|
||||
/*
|
||||
* Retry a promise-returning function a number of times, propagating its
|
||||
@@ -56,7 +58,7 @@ module.exports.retryPromise = function (attemts_left, promiseFunction) {
|
||||
throw error;
|
||||
}
|
||||
|
||||
console.log("A retried call failed. Retrying " + attemts_left + " more time(s).");
|
||||
events.emit('verbose', 'A retried call failed. Retrying ' + attemts_left + ' more time(s).');
|
||||
|
||||
// retry call self again with the same arguments, except attemts_left is now lower
|
||||
var fullArguments = [attemts_left, promiseFunction].concat(promiseFunctionArguments);
|
||||
|
||||
Reference in New Issue
Block a user