A fix for batch enqueue completion block returning on background thread
This commit is contained in:
parent
913ce47d89
commit
0fc6f980b9
1 changed files with 3 additions and 1 deletions
|
|
@ -442,7 +442,9 @@ static void AFReachabilityCallback(SCNetworkReachabilityRef __unused target, SCN
|
|||
{
|
||||
NSBlockOperation *batchedOperation = [NSBlockOperation blockOperationWithBlock:^{
|
||||
if (completionBlock) {
|
||||
completionBlock(operations);
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
completionBlock(operations);
|
||||
});
|
||||
}
|
||||
}];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue