B2G/gecko/services/aitc/modules/manager.js
/**
   * Do a GET check on the server to see if we have any new apps. Abort if
   * there are pending PUTs. If we GET some apps, send to storage for
   * further processing.
   */
Do a GET check on the server to see if we have any new apps. Abort if
there are pending PUTs. If we GET some apps, send to storage for
further processing.
Do a GET check on the server to see if we have any new apps . Abort if there are pending PUTs . If we GET some apps send to storage for further processing .
function _checkServer() {
    if (!this._client) {
      throw new Error("_checkServer called without a client");
    }
    if (this._pending.length) {
      this._log.warn("_checkServer aborted because of pending PUTs");
      return;
    }
    let self = this;
    this._validateToken(function validation(err) {
      if (err) {
        self._log.error(err);
      } else {
        self._getApps();
      }
    });
  }
function _checkServer ( ) { if ( ! this . _client ) { throw new Error ( "_checkServer called without a client" ) ; } if ( this . _pending . length ) { this . _log . warn ( "_checkServer aborted because of pending PUTs" ) ; return ; } let self = this ; this . _validateToken ( function validation ( err ) { if ( err ) { self . _log . error ( err ) ; } else { self . _getApps ( ) ; } } ) ; }
Do a GET check on the server to see if we have any new apps.
Do a GET check on the server to see if we have any new apps .