mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 14:30:47 +00:00
Bug 877057 - Add a download limit to Sync Engine fetches. r=mconnor
This commit is contained in:
parent
b7c0e66763
commit
8b107da744
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user