Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian committed Oct 5, 2017
2 parents 237cf14 + cca8bf7 commit cb2a0a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ let connector = (() => {
}
})
.catch((error) => {
intervalAll *= 2;
// intervalAll *= 2; // Removing the doubling as it might cause issues (growing too quickly)
setTimeout(proceedGetAllData, intervalAll, item);
});
}
Expand Down Expand Up @@ -203,7 +203,7 @@ let connector = (() => {
}

function onError(error) {
interval *= 2;
interval = Math.max(interval * 2, 1000 * 60 * 10);
browser.browserAction.setBadgeBackgroundColor({color: "#f00"});
browser.browserAction.setBadgeText({text: "X"});
browser.browserAction.setTitle({title: String(error)});
Expand Down

0 comments on commit cb2a0a2

Please sign in to comment.