mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-06 17:00:13 +00:00
Fix race condition
This commit is contained in:
parent
df60780a26
commit
88994eac67
@ -537,7 +537,9 @@ private final class CallSessionManagerContext {
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
strongSelf.drop(internalId: internalId, reason: .disconnect, debugLog: .single(nil))
|
||||
strongSelf.contexts.removeValue(forKey: internalId)
|
||||
strongSelf.contextIdByStableId.removeValue(forKey: stableId)
|
||||
strongSelf.ringingStatesUpdated()
|
||||
}
|
||||
}))
|
||||
self.contextIdByStableId[stableId] = internalId
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user