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 aa1ff698cf
commit b75580a11f
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
}