Skip to content

Commit

Permalink
add check to RefreshTask
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Jüni committed Mar 17, 2022
1 parent bd10796 commit 744867d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/DP3TSDK/Background/DP3TBackgroundTaskManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ class DP3TBackgroundTaskManager {
private func handleRefreshTask(_ task: BGTask) {
logger.trace()
scheduleBackgroundTasks()

if !shouldReschedule {
return
}

let queue = OperationQueue()
let completionGroup = DispatchGroup()
Expand Down

0 comments on commit 744867d

Please sign in to comment.