mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Fix race condition
This commit is contained in:
parent
df60780a26
commit
88994eac67
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue