Automatically delete temporary files after file transfer

This commit is contained in:
Leon Böttger committed 2025-12-21 13:48:31 +01:00
1 parent 24a0202ae9
commit 733ed8bec8
2 files changed
+14 -3

No files matched your search

@@ -410,8 +410,8 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb
if let transfer = incomingConnections[id] {
transfer.cancel()
}
if let transfer = outgoingTransfers[id] {
transfer.connection.cancel()
if let info = outgoingTransfers[id] {
info.connection.cancel()
}
}
@@ -650,7 +650,6 @@ public class NearbyConnectionManager: NSObject, NetServiceDelegate, InboundNearb
if accessSuccess {
url.stopAccessingSecurityScopedResource()
}
}
else {
log("[NearbyConnectionManager] File URL \(url) does not point to a security scoped resource")