Bug 877057 - Add a download limit to Sync Engine fetches. r=mconnor

This commit is contained in:
Richard Newman 2013-05-29 11:11:38 -07:00
parent b7c0e66763
commit 8b107da744

View File

@ -776,7 +776,7 @@ SyncEngine.prototype = {
this._log.trace("Downloading & applying server changes");
// Figure out how many total items to fetch this sync; do less on mobile.
let batchSize = Infinity;
let batchSize = this.downloadLimit || Infinity;
let isMobile = (Svc.Prefs.get("client.type") == "mobile");
if (!newitems) {