fix(core): always poll WireGuard stats regardless of Doze mode (#1177)

This commit is contained in:
Naonak
2026-03-08 00:48:15 +01:00
committed by GitHub
parent 3b69f620fb
commit 2d9c5ece4a
@@ -361,11 +361,9 @@ class TunnelMonitorHandler(
) = coroutineScope {
while (isActive) {
ensureActive()
if (!powerManager.isDeviceIdleMode) {
val stats = getStatistics(tunnelId)
ensureActive()
updateTunnelStatus(tunnelId, null, stats, null, null)
}
val stats = getStatistics(tunnelId)
ensureActive()
updateTunnelStatus(tunnelId, null, stats, null, null)
delay(STATS_DELAY)
}
}