feat: periodic server ping every 5s while app is open
Some checks failed
Mirror to GitHub / mirror (push) Failing after 40s
Build Release Binaries / build-amd64 (push) Failing after 3m53s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-04-07 10:13:51 +04:00
parent aecef0905d
commit 1e40dec468

View File

@@ -90,10 +90,13 @@ fun InCallScreen(
var showManageRelays by remember { mutableStateOf(false) }
// Ping servers on launch — engine init + QUIC ping, no restart needed
// Periodic ping every 5 seconds while app is open
LaunchedEffect(Unit) {
viewModel.loadSavedFingerprints()
while (true) {
viewModel.pingAllServers()
kotlinx.coroutines.delay(5000)
}
}
Surface(