mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Set bgtask to complete
This commit is contained in:
@@ -263,6 +263,7 @@ private extension AppDelegate {
|
||||
// If the device is in low power mode, return early
|
||||
if ProcessInfo.processInfo.isLowPowerModeEnabled {
|
||||
os_log("Device is in low power mode. Background refresh terminated.", log: self.log, type: .info)
|
||||
task.setTaskCompleted(success: false)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user