mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Keep call instance in memory until it's completed
This commit is contained in:
parent
5e367f191d
commit
b2307dffdd
1 changed files with 6 additions and 1 deletions
|
|
@ -1123,7 +1123,8 @@ public final class OngoingCallContext {
|
|||
}
|
||||
let tempStatsLogPath = self.tempStatsLogFile.path
|
||||
|
||||
self.withContextThenDeallocate { context in
|
||||
let queue = self.queue
|
||||
self.withContext { context in
|
||||
context.nativeStop { debugLog, bytesSentWifi, bytesReceivedWifi, bytesSentMobile, bytesReceivedMobile in
|
||||
let delta = NetworkUsageStatsConnectionsEntry(
|
||||
cellular: NetworkUsageStatsDirectionsEntry(
|
||||
|
|
@ -1154,6 +1155,10 @@ public final class OngoingCallContext {
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
queue.async {
|
||||
let _ = context.nativeGetDerivedState()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue