mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-10 00:50:55 +01:00
Don't query unread counts if database is suspended
This commit is contained in:
parent
a75ce688d9
commit
0759c303cc
@ -329,7 +329,7 @@ final class ArticlesTable: DatabaseTable {
|
|||||||
func fetchUnreadCount(_ webFeedIDs: Set<String>, _ since: Date, _ callback: @escaping (Int) -> Void) {
|
func fetchUnreadCount(_ webFeedIDs: Set<String>, _ since: Date, _ callback: @escaping (Int) -> Void) {
|
||||||
// Get unread count for today, for instance.
|
// Get unread count for today, for instance.
|
||||||
|
|
||||||
if webFeedIDs.isEmpty {
|
if webFeedIDs.isEmpty || queue.isSuspended {
|
||||||
callback(0)
|
callback(0)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user