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

Commit b93e973

Browse files
committed
use instancesRespondsToSelector
1 parent 21ebed7 commit b93e973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/CodePush/CodePushDownloadHandler.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ -(void)download:(NSString*)url {
2727
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request
2828
delegate:self
2929
startImmediately:NO];
30-
if ([NSOperationQueue respondsToSelector:@selector(setUnderlyingQueue:)]) {
30+
if ([NSOperationQueue instancesRespondToSelector:@selector(setUnderlyingQueue:)]) {
3131
NSOperationQueue *delegateQueue = [NSOperationQueue new];
3232
delegateQueue.underlyingQueue = self.operationQueue;
3333
[connection setDelegateQueue:delegateQueue];

0 commit comments

Comments
 (0)