Send keepalive ack during handshake

This commit is contained in:
Leon Böttger authored and Leon Böttger committed 2026-03-21 21:51:19 +01:00
1 parent 429069f372
commit 245358ae96
1 file changed
+4 -1
@@ -83,7 +83,10 @@ class InboundNearbyConnection: NearbyConnection {
frame.hasV1,
frame.v1.hasType,
case .keepAlive = frame.v1.type {
log("[InboundNearbyConnection \(self.id)] Ignoring keep-alive during handshake in state \(currentState)")
log("[InboundNearbyConnection \(self.id)] Received keep-alive during handshake in state \(currentState)")
if !frame.v1.hasKeepAlive || !frame.v1.keepAlive.ack {
sendKeepAlive(ack: true)
}
return
}