mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
Send keepalive ack during handshake
This commit is contained in:
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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user