Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

Commit

Permalink
Higher retry delay
Browse files Browse the repository at this point in the history
cc #8
  • Loading branch information
kurtextrem committed Jun 16, 2014
1 parent eccce2d commit 788560f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@

qwest.post(this.url, {ref: 'kurtextrem alert monitor'}, { dataType: 'json' }).success(function(data) {
if (!data) {
window.setTimeout(this.update.bind(this), ++this.errorDelay * 2000)
window.setTimeout(this.update.bind(this), ++this.errorDelay * 3000)
}
this.errorDelay = 2

Expand All @@ -105,7 +105,7 @@
chrome.storage.local.set({ servers: this.servers, count: this.count, serverTimestamp: Date.now() })
this.updateIcon()
}.bind(this)).error(function() {
window.setTimeout(this.update.bind(this), ++this.errorDelay * 2000)
window.setTimeout(this.update.bind(this), ++this.errorDelay * 3000)
}.bind(this))
},

Expand Down

0 comments on commit 788560f

Please sign in to comment.