async init not required

This commit is contained in:
Fabian Freund committed 2025-09-26 13:44:35 +02:00
1 parent 0b27de299e
commit 3f9395060b
3 files changed
+3 -3

No files matched your search

+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;