Prevent delete while refresh in progress

This commit is contained in:
Maurice Parker
2019-05-02 06:50:35 -05:00
parent eb89ee7128
commit 137f061169

View File

@@ -120,6 +120,10 @@ public final class AccountManager: UnreadCountProvider {
public func deleteAccount(_ account: Account) {
guard !account.refreshInProgress else {
return
}
accountsDictionary.removeValue(forKey: account.accountID)
do {