diff --git a/submodules/TelegramVoip/Sources/OngoingCallContext.swift b/submodules/TelegramVoip/Sources/OngoingCallContext.swift index 67f3f2dfdf..ddd3f5e954 100644 --- a/submodules/TelegramVoip/Sources/OngoingCallContext.swift +++ b/submodules/TelegramVoip/Sources/OngoingCallContext.swift @@ -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() + } } } }