Commit 18d2cafe authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! TB 40933: Add tor-launcher functionality

TB 44753: Drop TorProvider.isBootstrapDone.
parent a353c9ee
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -137,7 +137,6 @@ export class TorProvider {
   */
  #socksSettings = null;

  #isBootstrapDone = false;
  /**
   * Keep the last warning to avoid broadcasting an async warning if it is the
   * same one as the last broadcast.
@@ -510,10 +509,6 @@ export class TorProvider {
    return TorLauncherUtil.shouldStartAndOwnTor;
  }

  get isBootstrapDone() {
    return this.#isBootstrapDone;
  }

  /**
   * TODO: Rename to isReady once we remove finish the migration.
   *
@@ -883,7 +878,6 @@ export class TorProvider {
        "Requested to close an already closed control port connection"
      );
    }
    this.#isBootstrapDone = false;
    this.#lastWarning = {};
  }

@@ -1005,12 +999,9 @@ export class TorProvider {
    Services.obs.notifyObservers(statusObj, TorProviderTopics.BootstrapStatus);

    if (statusObj.PROGRESS === 100) {
      this.#isBootstrapDone = true;
      return;
    }

    this.#isBootstrapDone = false;

    // Can TYPE ever be ERR for STATUS_CLIENT?
    if (
      isNotification &&