We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 503dc32 commit 02121dcCopy full SHA for 02121dc
Authenticator/Model/MainViewModel.swift
@@ -93,6 +93,9 @@ class MainViewModel: ObservableObject {
93
await MainActor.run { [weak self] in
94
self?.favoritesCancellables.forEach { $0.cancel() }
95
self?.favoritesCancellables.removeAll()
96
+ self?.accounts.forEach { account in
97
+ account.invalidate()
98
+ }
99
self?.accounts.removeAll()
100
self?.pinnedAccounts.removeAll()
101
self?.otherAccounts.removeAll()
@@ -114,6 +117,9 @@ class MainViewModel: ObservableObject {
114
117
@MainActor func stop() {
115
118
sessionTask?.cancel()
116
119
sessionTask = nil
120
+ accounts.forEach { account in
121
122
123
accounts.removeAll()
124
pinnedAccounts.removeAll()
125
otherAccounts.removeAll()
0 commit comments