From a75ce688d9dcdad38f19b68c57008a40ce034eda Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 7 Dec 2019 16:26:38 -0700 Subject: [PATCH] Update to latest RSWeb so that refreshAll completion handler no longer gets called early --- Frameworks/Account/LocalAccount/LocalAccountRefresher.swift | 3 ++- submodules/RSWeb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Frameworks/Account/LocalAccount/LocalAccountRefresher.swift b/Frameworks/Account/LocalAccount/LocalAccountRefresher.swift index c1b50b519..dff3bdb7c 100644 --- a/Frameworks/Account/LocalAccount/LocalAccountRefresher.swift +++ b/Frameworks/Account/LocalAccount/LocalAccountRefresher.swift @@ -61,7 +61,7 @@ extension LocalAccountRefresher: DownloadSessionDelegate { return request as URLRequest } - func downloadSession(_ downloadSession: DownloadSession, downloadDidCompleteForRepresentedObject representedObject: AnyObject, response: URLResponse?, data: Data, error: NSError?) { + func downloadSession(_ downloadSession: DownloadSession, downloadDidCompleteForRepresentedObject representedObject: AnyObject, response: URLResponse?, data: Data, error: NSError?, completion: @escaping () -> Void) { guard let feed = representedObject as? WebFeed, !data.isEmpty, !isSuspended else { return } @@ -87,6 +87,7 @@ extension LocalAccountRefresher: DownloadSessionDelegate { } feed.contentHash = dataHash + completion() } } } diff --git a/submodules/RSWeb b/submodules/RSWeb index 0631696e7..b2dd50f1f 160000 --- a/submodules/RSWeb +++ b/submodules/RSWeb @@ -1 +1 @@ -Subproject commit 0631696e7383368664a1fe47c58ebcd0ee2d49f8 +Subproject commit b2dd50f1ff2a64c09a543d00bc35c8a66c1fc2b6