File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -157,15 +157,15 @@ public extension SocketProvider {
157157 func shareResource( url localUrl: URL , resourceName: String ) async throws -> SharedResource {
158158 return try await withCheckedThrowingContinuation { resourceUrlContinuation in
159159 let uuid = UUID ( )
160- let resourceName = [ resourceName, uuid. uuidString] . joined ( separator: " / " )
160+ let nameWithUUID = [ resourceName, uuid. uuidString] . joined ( separator: " / " )
161161
162162 let recievers = session. connectedPeers
163163 let recieverCount = recievers. count
164164 let counter = Counter ( targetCount: recieverCount)
165165
166166 recievers. forEach { peer in
167167 let progress = session. sendResource ( at: localUrl,
168- withName: resourceName ,
168+ withName: nameWithUUID ,
169169 toPeer: peer,
170170 withCompletionHandler: { [ weak self] error in
171171 let task = Task {
You can’t perform that action at this time.
0 commit comments