mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Fix a retain cycle in the SecureBackupController remoteBackupStateTask
Try to prevent closure crashes we've been seeing in sentry
This commit is contained in:
committed by
Stefan Ceriu
parent
9468d7f7d1
commit
7c96ebfca6
@@ -189,7 +189,9 @@ class SecureBackupController: SecureBackupControllerProtocol {
|
||||
// MARK: - Private
|
||||
|
||||
private func updateBackupStateFromRemote(retry: Bool = true) {
|
||||
remoteBackupStateTask = Task {
|
||||
remoteBackupStateTask = Task { [weak self] in
|
||||
guard let self else { return }
|
||||
|
||||
do {
|
||||
MXLog.info("Checking if backup exists on the server")
|
||||
let backupExists = try await self.encryption.backupExistsOnServer()
|
||||
|
||||
Reference in New Issue
Block a user