mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-11 02:51:11 +00:00
NearbyConnection: Fix missing disconnect handler
This commit is contained in:
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 {
|
||||
|
||||
Reference in new issue
Block a user