File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ # 3.5.1
2
+
3
+ ## Bugfix
4
+ - Uploads that got cancelled by force closing an app didn't get retried on app launch (Issue: [ #200 ] ( https://github.com/tus/TUSKit/issues/200 ) )
5
+
1
6
# 3.5.0
2
7
3
8
## Bugfix
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ public final class TUSClient {
117
117
self . scheduler = scheduler
118
118
self . reportingQueue = reportingQueue
119
119
scheduler. delegate = self
120
+ removeFinishedUploads ( )
121
+ reregisterCallbacks ( )
120
122
}
121
123
122
124
/// Initialize a TUSClient
@@ -475,7 +477,11 @@ public final class TUSClient {
475
477
}
476
478
477
479
self . api. registerCallback ( { result in
478
- task. taskCompleted ( result: result, completed: { _ in } )
480
+ task. taskCompleted ( result: result, completed: { [ weak self] result in
481
+ if case . failure = result {
482
+ try ? self ? . retry ( id: metadata. id)
483
+ }
484
+ } )
479
485
} , forMetadata: metadata)
480
486
}
481
487
}
You can’t perform that action at this time.
0 commit comments