Skip to content

Commit a8a6db4

Browse files
Merge pull request robbiehanson#339 from evands/allow-subclassing
Allow GCDAsyncSocket subclassing
2 parents a9c4af9 + be15c6d commit a8a6db4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/GCD/GCDAsyncSocket.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,9 +1958,9 @@ - (BOOL)doAccept:(int)parentSocketFD
19581958

19591959
// Create GCDAsyncSocket instance for accepted socket
19601960

1961-
GCDAsyncSocket *acceptedSocket = [[GCDAsyncSocket alloc] initWithDelegate:theDelegate
1962-
delegateQueue:delegateQueue
1963-
socketQueue:childSocketQueue];
1961+
GCDAsyncSocket *acceptedSocket = [[[self class] alloc] initWithDelegate:theDelegate
1962+
delegateQueue:delegateQueue
1963+
socketQueue:childSocketQueue];
19641964

19651965
if (socketType == 0)
19661966
acceptedSocket->socket4FD = childSocketFD;

0 commit comments

Comments
 (0)