use fire immediatialy

This commit is contained in:
Fabian Freund
2025-06-15 21:27:41 +02:00
parent 81ecb69cce
commit 9b7286ffd4
6 changed files with 67 additions and 31 deletions
@@ -108,7 +108,10 @@ class TorProxyService extends _$TorProxyService {
await _tor.initializeService();
ref.listen(browserViewLifecycleProvider, (previous, next) {
ref.listen(fireImmediately: true, browserViewLifecycleProvider, (
previous,
next,
) {
switch (next) {
case AppLifecycleState.resumed:
if (_timerPaused) {