mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix race condition
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user