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

bug=342908
r=ben
This commit is contained in:
myk@mozilla.org
2006-07-05 20:23:57 +00:00
parent 535dd4de15
commit 8c69d89a16

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);
}
},