diff --git a/Sources/DVR/Session.swift b/Sources/DVR/Session.swift index 2ecebc5..69502f9 100644 --- a/Sources/DVR/Session.swift +++ b/Sources/DVR/Session.swift @@ -149,6 +149,11 @@ open class Session: URLSession { } if let delegate = delegate as? URLSessionTaskDelegate { + if #available(iOSApplicationExtension 10.0, *) { + let metrics = URLSessionTaskMetrics() + delegate.urlSession?(self, task: task, didFinishCollecting: metrics) + } + delegate.urlSession?(self, task: task, didCompleteWithError: nil) } }