[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser/tor-browser-91.2.0esr-11.0-1] fixup! Bug 40597: Implement TorSettings module
commit b8f9308ed1ca29d3cf80d0e8f7230121f129f4c3
Author: Matthew Finkel <sysrqb@xxxxxxxxxxxxxx>
Date: Fri Sep 3 05:06:54 2021 +0000
fixup! Bug 40597: Implement TorSettings module
---
browser/modules/TorSettings.jsm | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/browser/modules/TorSettings.jsm b/browser/modules/TorSettings.jsm
index 848925fd7b29..ae5d3d49f298 100644
--- a/browser/modules/TorSettings.jsm
+++ b/browser/modules/TorSettings.jsm
@@ -321,7 +321,7 @@ const TorSettings = (() => {
console.log(`TorSettings: observed ${topic}`);
// once the process is ready, we need to apply our settings
- let handleProcessReady = () => {
+ let handleProcessReady = async () => {
Services.obs.removeObserver(this, TorTopics.ProcessIsReady);
if (this._settings == null) {
// load settings from tor if our load in init() failed and save them to prefs
@@ -337,12 +337,12 @@ const TorSettings = (() => {
switch (topic) {
case BrowserTopics.ProfileAfterChange: {
if (TorProtocolService.torProcessStatus == TorProcessStatus.Running) {
- handleProcessReady();
+ await handleProcessReady();
}
}
break;
case TorTopics.ProcessIsReady: {
- handleProcessReady();
+ await handleProcessReady();
}
break;
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits