resolve the futures

This commit is contained in:
sneurlax 2023-09-15 16:01:23 -05:00
parent 28b2f4f6b6
commit b2203a6cc7

View file

@ -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({