File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -431,8 +431,16 @@ open class URLSessionDownloadTask : URLSessionTask {
431
431
open func cancel( byProducingResumeData completionHandler: @escaping ( Data ? ) -> Void ) {
432
432
super. cancel ( )
433
433
434
- // A token Data value is passed to the client to prevent unexpected
435
- // failures that may be caused by passing nil instead
434
+ /*
435
+ * In Objective-C, this method relies on an Apple-maintained XPC process
436
+ * to manage the bookmarking of partially downloaded data. Therefore, the
437
+ * original behavior cannot be directly ported, here.
438
+ *
439
+ * Instead, we just call the completionHandler directly.
440
+ *
441
+ * A token Data value is passed to the client to prevent unexpected failures
442
+ * that may be caused from passing nil instead.
443
+ */
436
444
completionHandler ( Data ( ) )
437
445
}
438
446
}
You can’t perform that action at this time.
0 commit comments