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