From b2203a6cc76be1f6b9e13ddca9281757f3726073 Mon Sep 17 00:00:00 2001 From: sneurlax Date: Fri, 15 Sep 2023 16:01:23 -0500 Subject: [PATCH] resolve the futures --- lib/services/tor_service.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/services/tor_service.dart b/lib/services/tor_service.dart index c4e7a0117..52af4ed7e 100644 --- a/lib/services/tor_service.dart +++ b/lib/services/tor_service.dart @@ -79,6 +79,9 @@ class TorService { status: TorConnectionStatus.connected, message: "TorService.start call success", ); + + // Complete the future. + return; } catch (e, s) { Logging.instance.log( "TorService.start failed: $e\n$s", @@ -110,6 +113,8 @@ class TorService { status: TorConnectionStatus.disconnected, message: "TorService.disable call success", ); + + return; } void _updateStatusAndFireEvent({