Fix if app reads an old access token while it is updating

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-24 18:19:31 -03:00
commit a68647306f
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -211,7 +211,7 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
});
};
root.init = function(cb) {
root.init = lodash.throttle(function(cb) {
if (lodash.isEmpty(credentials.CLIENT_ID)) {
return cb('Coinbase is Disabled');
}
@ -243,7 +243,7 @@ angular.module('copayApp.services').factory('coinbaseService', function($http, $
});
}
});
};
}, 10000);
var _get = function(endpoint, token) {
return {