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
-
29abadbb
by Matthew Finkel at 2020-09-30T22:03:40+00:00
1 changed file:
Changes:
| ... | ... | @@ -119,6 +119,13 @@ class TorController( |
| 119 | 119 |
Prefs.setBridgesList(value)
|
| 120 | 120 |
}
|
| 121 | 121 |
|
| 122 |
+ init {
|
|
| 123 |
+ // Bug 40040: Hacky: Initialize TorService when we are instantiated. This should
|
|
| 124 |
+ // help avoid a race condition involving copying assets and starting tor in TorService.
|
|
| 125 |
+ val torServiceStatus = Intent(context, TorService::class.java)
|
|
| 126 |
+ context.startService(torServiceStatus)
|
|
| 127 |
+ }
|
|
| 128 |
+ |
|
| 122 | 129 |
fun start() {
|
| 123 | 130 |
// Register receiver
|
| 124 | 131 |
lbm.registerReceiver(
|