function abort(error) {
    this._log.debug("Aborting...");
    this._finished = true;
    let self = this;

    // Default to "user aborted".
    if (!error) {
      error = JPAKE_ERROR_USERABORT;
    }

    if (error == JPAKE_ERROR_CHANNEL ||
        error == JPAKE_ERROR_NETWORK ||
        error == JPAKE_ERROR_NODATA) {
      Utils.nextTick(function() { this.controller.onAbort(error); }, this);
    } else {
      this._reportFailure(error, function() { self.controller.onAbort(error); });
    }
  }
/**
   * Abort the current pairing. The channel on the server will be deleted
   * if the abort wasn't due to a network or server error. The controller's
   * 'onAbort()' method is notified in all cases.
   * 
   * @param error [optional]
   *        Error constant indicating the reason for the abort. Defaults to
   *        user abort.
   */
Abort the current pairing. The channel on the server will be deleted
if the abort wasn't due to a network or server error. The controller's
'onAbort()' method is notified in all cases.

@param error [optional]
Error constant indicating the reason for the abort. Defaults to
user abort.
Abort the current pairing . The channel on the server will be deleted if the abort wasn ' t due to a network or server error . The controller ' s ' onAbort () ' method is notified in all cases . @param error [ optional ] Error constant indicating the reason for the abort . Defaults to user abort .
function abort(error) {
    this._log.debug("Aborting...");
    this._finished = true;
    let self = this;
    if (!error) {
      error = JPAKE_ERROR_USERABORT;
    }
    if (error == JPAKE_ERROR_CHANNEL ||
        error == JPAKE_ERROR_NETWORK ||
        error == JPAKE_ERROR_NODATA) {
      Utils.nextTick(function() { this.controller.onAbort(error); }, this);
    } else {
      this._reportFailure(error, function() { self.controller.onAbort(error); });
    }
  }
function abort ( error ) { this . _log . debug ( "Aborting..." ) ; this . _finished = true ; let self = this ; if ( ! error ) { error = JPAKE_ERROR_USERABORT ; } if ( error == JPAKE_ERROR_CHANNEL || error == JPAKE_ERROR_NETWORK || error == JPAKE_ERROR_NODATA ) { Utils . nextTick ( function ( ) { this . controller . onAbort ( error ) ; } , this ) ; } else { this . _reportFailure ( error , function ( ) { self . controller . onAbort ( error ) ; } ) ; } }
Abort the current pairing.
Abort the current pairing .
// Default to "user aborted".