Commit 1dc47dd9 authored by henry's avatar henry
Browse files

fixup! TB 42247: Android helpers for the TorProvider

TB 41921: Do not wait for TorProviderBuilder.init since it is no longer
async.
parent 34cfa54a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -68,9 +68,12 @@ class TorAndroidIntegrationImpl {
      Services.obs.addObserver(this, lazy.TorSettingsTopics[topic]);
    }

    lazy.TorProviderBuilder.init().finally(() => {
    lazy.TorProviderBuilder.init();
    // On Android immediately call firstWindowLoaded. This should be safe to
    // call since it will await the initialisation of the TorProvider set up
    // by TorProviderBuilder.init.
    lazy.TorProviderBuilder.firstWindowLoaded();
    });

    try {
      await lazy.TorSettings.init();
      await lazy.TorConnect.init();