@@ -1869,16 +1869,20 @@ - (bool)socket: (OF_KINDOF(OFUDPSocket *))sock didReceiveIntoBuffer: (void *)buffer_ length: (size_t)length sender: (of_socket_address_t)sender + exception: (id)exception { unsigned char *buffer = buffer_; OFDictionary *answerRecords = nil, *authorityRecords = nil; OFDictionary *additionalRecords = nil; OFNumber *ID; OFDNSResolverQuery *query; + + if (exception != nil) + return true; if (length < 2) /* We can't get the ID to get the query. Ignore packet. */ return true; @@ -2010,17 +2014,10 @@ query->_context, nil); return true; } -- (void)socket: (OF_KINDOF(OFUDPSocket *))sock - didFailToReceiveWithException: (id)exception -{ - [sock asyncReceiveIntoBuffer: _buffer - length: BUFFER_LENGTH]; -} - - (void)asyncResolveSocketAddressesForHost: (OFString *)host target: (id)target selector: (SEL)selector context: (id)context {