mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-08 19:10:53 +00:00
Keep call instance in memory until it's completed
This commit is contained in:
parent
5e367f191d
commit
b2307dffdd
@ -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…
x
Reference in New Issue
Block a user