Merge branch 'charlesmchen/backgroundTaskTypo' into release/2.22.0

pull/1/head
Michael Kirk 8 years ago
commit 5f8c5ccd53

@ -261,7 +261,7 @@ typedef NSNumber *OWSTaskId;
// to ensure that. We thereby ensure that we don't end the background task
// until all of the completion blocks have completed.
DispatchSyncMainThreadSafe(^{
for (BackgroundTaskExpirationBlock expirationBlock in expirationMap) {
for (BackgroundTaskExpirationBlock expirationBlock in expirationMap.allValues) {
expirationBlock();
}
if (backgroundTaskId != UIBackgroundTaskInvalid) {

Loading…
Cancel
Save