diff --git a/lib/sync.js b/lib/sync.js index b22f27ead..bdd7c0366 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -694,7 +694,7 @@ SyncApi.prototype._processSyncResponse = function(syncToken, data) { */ SyncApi.prototype._startKeepAlives = function(delay) { if (delay === undefined) { - delay = 5000 + Math.floor(Math.random() * 5000) + delay = 5000 + Math.floor(Math.random() * 5000); } if (this._keepAliveTimer !== null) {