mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Suspend the databases sooner when suspending the application.
This commit is contained in:
@@ -295,7 +295,8 @@ private extension AppDelegate {
|
||||
guard UIApplication.shared.applicationState == .background else { return }
|
||||
|
||||
AccountManager.shared.suspendNetworkAll()
|
||||
|
||||
AccountManager.shared.suspendDatabaseAll()
|
||||
|
||||
CoalescingQueue.standard.performCallsImmediately()
|
||||
for scene in UIApplication.shared.connectedScenes {
|
||||
if let sceneDelegate = scene.delegate as? SceneDelegate {
|
||||
@@ -303,7 +304,6 @@ private extension AppDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
AccountManager.shared.suspendDatabaseAll()
|
||||
os_log("Application processing suspended.", log: self.log, type: .info)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user