[tbb-commits] [Git][tpo/applications/fenix][tor-browser-81.1.1-10.0-1] 2 commits: fixup! Bug 40028: Implement Tor Service controller

Matthew Finkel gitlab at torproject.org
Wed Sep 30 22:03:57 UTC 2020



Matthew Finkel pushed to branch tor-browser-81.1.1-10.0-1 at The Tor Project / Applications / fenix


Commits:
bf824c0f by Matthew Finkel at 2020-09-30T12:54:41+00:00
fixup! Bug 40028: Implement Tor Service controller

Bug 40040: Try avoiding a race condition when starting Tor

This does not prevent the race, but this increases the chances that
the two racing operations do not happen in parallel.

- - - - -
29abadbb by Matthew Finkel at 2020-09-30T22:03:40+00:00
Merge branch 'bug_40040_01' into tor-browser-81.1.1-10.0-1

- - - - -


1 changed file:

- app/src/main/java/org/mozilla/fenix/tor/TorController.kt


Changes:

=====================================
app/src/main/java/org/mozilla/fenix/tor/TorController.kt
=====================================
@@ -119,6 +119,13 @@ class TorController(
             Prefs.setBridgesList(value)
         }
 
+    init {
+        // Bug 40040: Hacky: Initialize TorService when we are instantiated. This should
+        // help avoid a race condition involving copying assets and starting tor in TorService.
+        val torServiceStatus = Intent(context, TorService::class.java)
+        context.startService(torServiceStatus)
+    }
+
     fun start() {
         // Register receiver
         lbm.registerReceiver(



View it on GitLab: https://gitlab.torproject.org/tpo/applications/fenix/-/compare/294a617bf99061600410e999fa5c1ec3ccde588b...29abadbb4a24f1ccd239eafd59da4c76fe00b7b6

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/fenix/-/compare/294a617bf99061600410e999fa5c1ec3ccde588b...29abadbb4a24f1ccd239eafd59da4c76fe00b7b6
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20200930/c5ab7725/attachment.htm>


More information about the tbb-commits mailing list