async init not required

This commit is contained in:
Fabian Freund
2025-09-26 13:44:35 +02:00
parent 0b27de299e
commit 3f9395060b
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ class _MyAppState extends State<Home> {
);
Future<void> startTor() async {
await Tor.init();
Tor.init();
// Start the proxy
await Tor.instance.start();
+1 -1
View File
@@ -99,7 +99,7 @@ class Tor {
/// Returns a Future that completes when the Tor service has started.
///
/// Throws an exception if the Tor service fails to start.
static Future<Tor> init({bool enabled = true}) async {
static Tor init({bool enabled = true}) {
final singleton = Tor._instance;
singleton._enabled = enabled;
return singleton;