Don't send keepalive too early

This commit is contained in:
Leon Böttger authored and Leon Böttger committed 2026-03-21 21:16:26 +01:00
1 parent 04e056da02
commit 429069f372
2 files changed
+2 -5

No files matched your search

@@ -657,7 +657,7 @@ class NearbyConnection {
return
}
if lastKeepAliveFrameSent.isOlderThan(seconds: ackInterval) {
if encryptionDone && lastKeepAliveFrameSent.isOlderThan(seconds: ackInterval) {
sendKeepAlive(ack: false)
}