Allow multiple incoming connections

This commit is contained in:
Leon Böttger committed 2026-02-19 20:53:48 +01:00
1 parent bb1f28af0b
commit 6401c1969c
2 files changed
-19

No files matched your search

@@ -539,12 +539,6 @@ class InboundNearbyConnection: NearbyConnection {
let acceptAutomatically = isAuthenticated || Settings.sharedInstance.automaticallyAcceptFiles
DispatchQueue.main.async {
if !NearbyConnectionManager.shared.claimIncomingTransfer(id: self.id) {
log("[InboundNearbyConnection \(self.id)] Another transfer is active. Rejecting incoming transfer.")
self.rejectTransfer()
return
}
if acceptAutomatically {
self.delegate?.obtainedUserConsentAutomatically(transfer: metadata, device: self.remoteDeviceInfo!, connection: self)
self.submitUserConsent(accepted: true, trustDevice: false)