mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 04:17:44 +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) {
|
||||
// Get unread count for today, for instance.
|
||||
|
||||
if webFeedIDs.isEmpty {
|
||||
if webFeedIDs.isEmpty || queue.isSuspended {
|
||||
callback(0)
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user