We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 746792c commit 3e5c59cCopy full SHA for 3e5c59c
1 file changed
Sources/NextcloudKit/NKCommon.swift
@@ -146,6 +146,9 @@ public struct NKCommon: Sendable {
146
147
defer {
148
NotificationCenter.default.removeObserver(tokenObserver)
149
+
150
+ try? writer?.close()
151
+ try? reader?.close()
152
}
153
154
outerLoop: repeat {
@@ -229,9 +232,6 @@ public struct NKCommon: Sendable {
229
232
230
233
} while true
231
234
- writer?.closeFile()
- reader?.closeFile()
-
235
// Update incremental chunk sizes
236
for i in 0..<filesChunk.count {
237
let path = outputDirectory + "/" + filesChunk[i].fileName
0 commit comments