From 26efb8895ccc581b53049de7c43f77cc5ae185d7 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 29 Jan 2020 22:45:55 -0800 Subject: [PATCH] Close the resultSet in FetchAllUnreadCountsOperation. --- .../Operations/FetchAllUnreadCountsOperation.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Frameworks/ArticlesDatabase/Operations/FetchAllUnreadCountsOperation.swift b/Frameworks/ArticlesDatabase/Operations/FetchAllUnreadCountsOperation.swift index cb172bb68..f02fcf8b6 100644 --- a/Frameworks/ArticlesDatabase/Operations/FetchAllUnreadCountsOperation.swift +++ b/Frameworks/ArticlesDatabase/Operations/FetchAllUnreadCountsOperation.swift @@ -59,6 +59,7 @@ private extension FetchAllUnreadCountsOperation { var d = UnreadCountDictionary() while resultSet.next() { if isCanceled { + resultSet.close() informOperationDelegateOfCompletion() return } @@ -67,6 +68,7 @@ private extension FetchAllUnreadCountsOperation { d[webFeedID] = unreadCount } } + resultSet.close() unreadCountDictionary = d informOperationDelegateOfCompletion()