commit
45ffa94bbe
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ Insight.prototype._request = function(options, callback) {
|
||||||
request.open(options.method, url, true);
|
request.open(options.method, url, true);
|
||||||
request.timeout = 5000;
|
request.timeout = 5000;
|
||||||
request.ontimeout = function() {
|
request.ontimeout = function() {
|
||||||
console.log('Insight timeout...retrying', err, self.retryDelay); //TODO
|
console.log('Insight timeout...retrying');
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
return self._request(options,callback);
|
return self._request(options,callback);
|
||||||
}, self.retryDelay);
|
}, self.retryDelay);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue