Skip to content

Commit 874da49

Browse files
committed
Bug fix for issue robbiehanson#165 : […] undeclared selector doNothingAtAll:
1 parent 5cf7bac commit 874da49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

GCD/GCDAsyncSocket.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6712,6 +6712,9 @@ - (void)cf_startTLS
67126712

67136713
#if TARGET_OS_IPHONE
67146714

6715+
+ (void)ignore:(id)_
6716+
{}
6717+
67156718
+ (void)startCFStreamThreadIfNeeded
67166719
{
67176720
static dispatch_once_t predicate;
@@ -6734,7 +6737,7 @@ + (void)cfstreamThread { @autoreleasepool
67346737
// So we'll just create a timer that will never fire - unless the server runs for decades.
67356738
[NSTimer scheduledTimerWithTimeInterval:[[NSDate distantFuture] timeIntervalSinceNow]
67366739
target:self
6737-
selector:@selector(doNothingAtAll:)
6740+
selector:@selector(ignore:)
67386741
userInfo:nil
67396742
repeats:YES];
67406743

0 commit comments

Comments
 (0)