forked from organicmaps/organicmaps
[iOS] Reverted back main queue
Signed-off-by: S. Kozyr <s.trump@gmail.com>
This commit is contained in:
parent
04b613137c
commit
c2214042e4
1 changed files with 4 additions and 4 deletions
|
@ -111,7 +111,7 @@
|
|||
if ([taskInfo.delegate
|
||||
respondsToSelector:@selector(URLSession:task:willPerformHTTPRedirection:newRequest:completionHandler:)])
|
||||
{
|
||||
dispatch_async(dispatch_get_current_queue(), ^{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[taskInfo.delegate URLSession:session
|
||||
task:task
|
||||
willPerformHTTPRedirection:response
|
||||
|
@ -134,7 +134,7 @@
|
|||
|
||||
if ([taskInfo.delegate respondsToSelector:@selector(URLSession:task:didCompleteWithError:)])
|
||||
{
|
||||
dispatch_async(dispatch_get_current_queue(), ^{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[taskInfo.delegate URLSession:session task:task didCompleteWithError:error];
|
||||
});
|
||||
}
|
||||
|
@ -149,7 +149,7 @@
|
|||
if ([taskInfo.delegate
|
||||
respondsToSelector:@selector(URLSession:dataTask:didReceiveResponse:completionHandler:)])
|
||||
{
|
||||
dispatch_async(dispatch_get_current_queue(), ^{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[taskInfo.delegate URLSession:session
|
||||
dataTask:dataTask
|
||||
didReceiveResponse:response
|
||||
|
@ -169,7 +169,7 @@
|
|||
DataTaskInfo * taskInfo = [self taskInfoForTask:dataTask];
|
||||
if ([taskInfo.delegate respondsToSelector:@selector(URLSession:dataTask:didReceiveData:)])
|
||||
{
|
||||
dispatch_async(dispatch_get_current_queue(), ^{
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[taskInfo.delegate URLSession:session dataTask:dataTask didReceiveData:data];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue