Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 58d5d89

Browse files
committed
Move delegateQueue creation
1 parent 4508f63 commit 58d5d89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ios/CodePush/CodePushDownloadHandler.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ -(void)download:(NSString*)url {
2424
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]
2525
cachePolicy:NSURLRequestUseProtocolCachePolicy
2626
timeoutInterval:60.0];
27-
NSOperationQueue *delegateQueue = [NSOperationQueue new];
28-
delegateQueue.underlyingQueue = self.usingQueue;
2927
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request
3028
delegate:self
3129
startImmediately:NO];
30+
NSOperationQueue *delegateQueue = [NSOperationQueue new];
31+
delegateQueue.underlyingQueue = self.usingQueue;
3232
[connection setDelegateQueue:delegateQueue];
3333
[connection start];
3434
}

0 commit comments

Comments
 (0)