mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 08:42:51 +00:00
Fix bug where completion wasn’t getting called on the main thread.
This commit is contained in:
1 parent
e8045b0e8b
commit
e2db7b4a5d
1 file changed
+6
-2
@@ -462,9 +462,13 @@ final class ArticlesTable: DatabaseTable {
|
||||
switch databaseResult {
|
||||
case .success(let database):
|
||||
self.statusesTable.mark(articleIDs, statusKey, flag, database)
|
||||
completion(nil)
|
||||
DispatchQueue.main.async {
|
||||
completion(nil)
|
||||
}
|
||||
case .failure(let databaseError):
|
||||
completion(databaseError)
|
||||
DispatchQueue.main.async {
|
||||
completion(databaseError)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user