don't recheck microsummaries when previous update failed until normal expiration

bug=342908
r=ben
This commit is contained in:
myk@mozilla.org
2007-01-14 05:38:03 +00:00
parent 47fc27842b
commit 87a6c8ad1e

View File

@@ -263,6 +263,11 @@ MicrosummaryService.prototype = {
this._getField(bookmarkID, FIELD_MICSUM_EXPIRATION) > now)
continue;
// Reset the expiration time immediately, so if the refresh is failing
// we don't try it every 15 seconds, potentially overloading the server.
var now = new Date().getTime();
this._setField(bookmarkID, FIELD_MICSUM_EXPIRATION, now + UPDATE_INTERVAL);
this.refreshMicrosummary(bookmarkID);
}
},