Commit 70c140a2 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

fixup! Bug 40597: Implement TorSettings module

Bug 41114: Refactor TorConnect.

TorConnect does not need to be defined in a function.
parent bd9e375a
Loading
Loading
Loading
Loading
+429 −435
Original line number Diff line number Diff line
@@ -861,8 +861,7 @@ class InternetTest {
  }
}

export const TorConnect = (() => {
  let retval = {
export const TorConnect = {
  _state: new InitialState(),
  _bootstrapProgress: 0,
  _bootstrapStatus: null,
@@ -1256,10 +1255,7 @@ export const TorConnect = (() => {
      await mrpc.init();
      this._countryCodes = await mrpc.circumvention_countries();
    } catch (err) {
        lazy.logger.error(
          "An error occurred while fetching country codes",
          err
        );
      lazy.logger.error("An error occurred while fetching country codes", err);
    } finally {
      mrpc.uninit();
    }
@@ -1318,5 +1314,3 @@ export const TorConnect = (() => {
    return uris.map(uri => this.getRedirectURL(uri));
  },
};
  return retval;
})(); /* TorConnect */