Fix crash on logout from too much wrong pin codes

This commit is contained in:
aringenbach
2022-09-15 09:31:32 +02:00
parent 72451c8651
commit 26fc3754a0
3 changed files with 20 additions and 2 deletions
@@ -638,6 +638,14 @@ public class RecentsListService: NSObject, RecentsListServiceProtocol {
guard let session = session else {
return
}
guard session.state != .closed else {
MXLog.debug("[RecentsListService] createFetchers cancelled on closed session")
return
}
guard session.roomListDataManager != nil else {
MXLog.debug("[RecentsListService] createFetchers cancelled on race condition (session closing in progress)")
return
}
guard session.isEventStreamInitialised else {
return
}