NearbyConnection: Fix missing disconnect handler

This commit is contained in:
Leon Böttger committed 2026-04-10 19:34:18 +02:00
1 parent 02ab04c69e
commit 976fc280db
1 file changed
+3
@@ -484,6 +484,9 @@ class NearbyConnection {
// Older peers can omit the keepAlive payload; default to ACK reply.
sendKeepAlive(ack: true)
}
} else if offlineFrame.hasV1, offlineFrame.v1.hasType, case .disconnection = offlineFrame.v1.type {
log("[NearbyConnection \(self.id)] Received disconnection frame.")
disconnect()
} else {
if offlineFrame.hasV1, offlineFrame.v1.hasType, offlineFrame.v1.type == .bandwidthUpgradeRetry {