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