Close the resultSet in FetchAllUnreadCountsOperation.

This commit is contained in:
Brent Simmons 2020-01-29 22:45:55 -08:00
parent 6d8d828fd2
commit 26efb8895c

View File

@ -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()