maybeStopMirrorSession_(routeId) {
    if (this.routeIdToMirrorServiceName_.has(routeId)) {
      // Stop mirroring first
      return this
          .getMirrorService(this.routeIdToMirrorServiceName_.get(routeId))
          .then(mirrorService => {
            this.routeIdToMirrorServiceName_.delete(routeId);
            return mirrorService.stopCurrentMirroring();
          });
    }
    return Promise.resolve(false);
  }
/**
   * @param {string} routeId
   * @return {!Promise<boolean>} Fulfilled with true if the route is for
   *    a mirror session and the mirroring was stopped, and with false
   *    otherwise.
   * @private
   */
@param {string} routeId
@return {!Promise} Fulfilled with true if the route is for
a mirror session and the mirroring was stopped, and with false
otherwise.
@private
@param { string } routeId @return { !Promise } Fulfilled with true if the route is for a mirror session and the mirroring was stopped and with false otherwise . @private
maybeStopMirrorSession_(routeId) {
    if (this.routeIdToMirrorServiceName_.has(routeId)) {
      return this
          .getMirrorService(this.routeIdToMirrorServiceName_.get(routeId))
          .then(mirrorService => {
            this.routeIdToMirrorServiceName_.delete(routeId);
            return mirrorService.stopCurrentMirroring();
          });
    }
    return Promise.resolve(false);
  }
maybeStopMirrorSession_ ( routeId ) { if ( this . routeIdToMirrorServiceName_ . has ( routeId ) ) { return this . getMirrorService ( this . routeIdToMirrorServiceName_ . get ( routeId ) ) . then ( mirrorService => { this . routeIdToMirrorServiceName_ . delete ( routeId ) ; return mirrorService . stopCurrentMirroring ( ) ; } ) ; } return Promise . resolve ( false ) ; }
@param {string} routeId
 @return {!Promise<boolean>} Fulfilled with true if the route is for
    a mirror session and the mirroring was stopped, and with false
    otherwise.
@param { string } routeId @return { !Promise<boolean > } Fulfilled with true if the route is for a mirror session and the mirroring was stopped and with false otherwise .
// Stop mirroring first