mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix mtproto deadlock when leaving scheduled call
This commit is contained in:
@@ -823,6 +823,8 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
||||
}
|
||||
|
||||
deinit {
|
||||
assert(Queue.mainQueue().isCurrent())
|
||||
|
||||
self.audioSessionShouldBeActiveDisposable?.dispose()
|
||||
self.audioSessionActiveDisposable?.dispose()
|
||||
self.summaryStateDisposable?.dispose()
|
||||
@@ -1074,6 +1076,9 @@ public final class PresentationGroupCallImpl: PresentationGroupCall {
|
||||
activeCallInfo = nil
|
||||
}
|
||||
}
|
||||
if self.leaving {
|
||||
shouldJoin = false
|
||||
}
|
||||
|
||||
if shouldJoin, let callInfo = activeCallInfo {
|
||||
let callContext: OngoingGroupCallContext
|
||||
|
||||
Reference in New Issue
Block a user