Set bgtask to complete

This commit is contained in:
Stuart Breckenridge 2019-06-21 12:58:36 +08:00
parent d9a4d42ca0
commit fbf2da0ab5
1 changed files with 1 additions and 0 deletions

View File

@ -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
}