fix lifecycle issues

This commit is contained in:
Fabian Freund
2025-09-19 12:19:16 +02:00
parent 6ab481d188
commit 8e1867092b
18 changed files with 36 additions and 23 deletions
@@ -138,6 +138,7 @@ class TorProxyService extends _$TorProxyService {
if (config == null && torSettings.requireBridge) {
config = MoatService.convertBuiltinToSettings(
// ignore: only_use_keep_alive_inside_keep_alive
await ref
.read(builtinBridgesRepositoryProvider(moat).notifier)
.getBridges(),
@@ -170,6 +171,7 @@ class TorProxyService extends _$TorProxyService {
if (config == null && torSettings.requireBridge) {
config = MoatService.convertBuiltinToSettings(
// ignore: only_use_keep_alive_inside_keep_alive
await ref
.read(builtinBridgesRepositoryProvider(moat).notifier)
.getBridges(tryUpdate: torSettings.fetchRemoteBridges),