Fix typo in background task.

pull/1/head
Matthew Chen 7 years ago committed by Michael Kirk
parent 44a26342e5
commit c1169ce240

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