Skip to content
Snippets Groups Projects
Commit 47453181 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.

Check if the current state is already transitioning, and refusing any
additional transition request.
parent 70a9324d
Branches
Tags
1 merge request!980Bug 42512: Rebased alpha onto Firefox 115.10.0esr
......@@ -875,6 +875,12 @@ export const TorConnect = {
},
async _changeState(newState, ...args) {
if (this._stateHandler.transitioning) {
// Avoid an exception to prevent it to be propagated to the original
// begin call.
lazy.logger.warn("Already transitioning");
return;
}
const prevState = this._stateHandler;
// ensure this is a valid state transition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment