B2G/gecko/services/sync/modules/service.js
// Returns false if the update was not required.
Returns false if the update was not required.
Returns false if the update was not required .
function _updateCluster() {
    this._log.info("Updating cluster.");
    let cTime = Date.now();
    let lastUp = parseFloat(Svc.Prefs.get("lastClusterUpdate"));
    if (!lastUp || ((cTime - lastUp) >= CLUSTER_BACKOFF)) {
      return this._setCluster();
    }
    return false;
  }
function _updateCluster ( ) { this . _log . info ( "Updating cluster." ) ; let cTime = Date . now ( ) ; let lastUp = parseFloat ( Svc . Prefs . get ( "lastClusterUpdate" ) ) ; if ( ! lastUp || ( ( cTime - lastUp ) >= CLUSTER_BACKOFF ) ) { return this . _setCluster ( ) ; } return false ; }
Returns false if the update was not required.
Returns false if the update was not required .