Skip to content

Commit f5b94fb

Browse files
+ UUID().uuidString
Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
1 parent 29c2b3e commit f5b94fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/NextcloudKit/NKSession.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public struct NKSession: Sendable {
101101
sessionDownloadBackground = URLSession(configuration: configurationDownloadBackground, delegate: backgroundSessionDelegate, delegateQueue: OperationQueue.main)
102102

103103
// Session Download Background Extension
104-
let configurationDownloadBackgroundExt = URLSessionConfiguration.background(withIdentifier: NKCommon().identifierSessionDownloadBackgroundExt)
104+
let configurationDownloadBackgroundExt = URLSessionConfiguration.background(withIdentifier: NKCommon().identifierSessionDownloadBackgroundExt + UUID().uuidString)
105105
configurationDownloadBackgroundExt.allowsCellularAccess = true
106106

107107
if #available(macOS 11, *) {
@@ -154,7 +154,7 @@ public struct NKSession: Sendable {
154154
sessionUploadBackgroundWWan = URLSession(configuration: configurationUploadBackgroundWWan, delegate: backgroundSessionDelegate, delegateQueue: OperationQueue.main)
155155

156156
// Session Upload Background Extension
157-
let configurationUploadBackgroundExt = URLSessionConfiguration.background(withIdentifier: NKCommon().identifierSessionUploadBackgroundExt)
157+
let configurationUploadBackgroundExt = URLSessionConfiguration.background(withIdentifier: NKCommon().identifierSessionUploadBackgroundExt + UUID().uuidString)
158158
configurationUploadBackgroundExt.allowsCellularAccess = true
159159

160160
if #available(macOS 11, *) {

0 commit comments

Comments
 (0)