Fix typo in background task.

This commit is contained in:
Matthew Chen 2018-03-13 15:54:44 -03:00 committed by Michael Kirk
parent 44a26342e5
commit c1169ce240
1 changed files with 1 additions and 1 deletions

View File

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