mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +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
|
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
|
context.nativeStop { debugLog, bytesSentWifi, bytesReceivedWifi, bytesSentMobile, bytesReceivedMobile in
|
||||||
let delta = NetworkUsageStatsConnectionsEntry(
|
let delta = NetworkUsageStatsConnectionsEntry(
|
||||||
cellular: NetworkUsageStatsDirectionsEntry(
|
cellular: NetworkUsageStatsDirectionsEntry(
|
||||||
@ -1154,6 +1155,10 @@ public final class OngoingCallContext {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
queue.async {
|
||||||
|
let _ = context.nativeGetDerivedState()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user