Set bgtask to complete
This commit is contained in:
parent
d9a4d42ca0
commit
fbf2da0ab5
|
@ -263,6 +263,7 @@ private extension AppDelegate {
|
||||||
// If the device is in low power mode, return early
|
// If the device is in low power mode, return early
|
||||||
if ProcessInfo.processInfo.isLowPowerModeEnabled {
|
if ProcessInfo.processInfo.isLowPowerModeEnabled {
|
||||||
os_log("Device is in low power mode. Background refresh terminated.", log: self.log, type: .info)
|
os_log("Device is in low power mode. Background refresh terminated.", log: self.log, type: .info)
|
||||||
|
task.setTaskCompleted(success: false)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue