ObjFW  Diff

Differences From Artifact [c13e2bacd9]:

To Artifact [1d12ee9c38]:


982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
	    initWithSocket: acceptedSocket
		    server: self] autorelease];

	acceptedSocket.delegate = connection;
	[acceptedSocket asyncReadLine];
}

-    (bool)socket: (OFTCPSocket *)sock
  didAcceptSocket: (OFTCPSocket *)acceptedSocket
	exception: (id)exception
{
	if (exception != nil) {
		if (![_delegate respondsToSelector:
		    @selector(server:didReceiveExceptionOnListeningSocket:)])
			return false;








|
|







982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
	    initWithSocket: acceptedSocket
		    server: self] autorelease];

	acceptedSocket.delegate = connection;
	[acceptedSocket asyncReadLine];
}

-    (bool)socket: (OFIPStreamSocket *)sock
  didAcceptSocket: (OFIPStreamSocket *)acceptedSocket
	exception: (id)exception
{
	if (exception != nil) {
		if (![_delegate respondsToSelector:
		    @selector(server:didReceiveExceptionOnListeningSocket:)])
			return false;

1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020

		[self performSelector: @selector(of_handleAcceptedSocket:)
			     onThread: thread
			   withObject: acceptedSocket
			waitUntilDone: false];
	} else
#endif
		[self of_handleAcceptedSocket: acceptedSocket];

	return true;
}
@end







|




1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020

		[self performSelector: @selector(of_handleAcceptedSocket:)
			     onThread: thread
			   withObject: acceptedSocket
			waitUntilDone: false];
	} else
#endif
		[self of_handleAcceptedSocket: (OFTCPSocket *)acceptedSocket];

	return true;
}
@end