Skip to content
Snippets Groups Projects
Commit 7f6ee356 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Bug 40597: Implement TorSettings module

Bug 41114: Refactor TorConnect.

Ignore cancel requests when in non-bootstrapping states.
parent d7f3375f
Branches
No related tags found
1 merge request!980Bug 42512: Rebased alpha onto Firefox 115.10.0esr
......@@ -1173,6 +1173,15 @@ export const TorConnect = {
cancelBootstrap() {
lazy.logger.debug("TorConnect.cancelBootstrap()");
if (
this.state !== TorConnectState.AutoBootstrapping &&
this.state !== TorConnectState.Bootstrapping
) {
lazy.logger.warn(
`Cannot cancel bootstrapping in the ${this.state} state`
);
return;
}
this._changeState(TorConnectState.Configuring);
},
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment