diff --git a/lib/main.dart b/lib/main.dart index 8df829495..53c0df498 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -168,7 +168,11 @@ void main() async { await Hive.openBox(DB.boxNamePrefs); await Prefs.instance.init(); - // Prefs.instance.useTor = true; // For testing purposes only. + // TODO: + // This should be moved to happen during the loading animation instead of + // showing a blank screen for 4-10 seconds. + // Some refactoring will need to be done here to make sure we don't make any + // network calls before starting up tor if (Prefs.instance.useTor) { await TorService.sharedInstance.start(); } diff --git a/lib/services/tor_service.dart b/lib/services/tor_service.dart index 9b8f27032..799aa4878 100644 --- a/lib/services/tor_service.dart +++ b/lib/services/tor_service.dart @@ -57,6 +57,7 @@ class TorService { // could throw an exception here or something so the caller // is explicitly made aware of this // TODO restart tor after that's been added to the tor-ffi crate + // (probably better to have a restart function separately) return; }