Index: src/XMPPConnection.m ================================================================== --- src/XMPPConnection.m +++ src/XMPPConnection.m @@ -441,11 +441,11 @@ length: (size_t)length exception: (OFException*)exception { if (exception != nil) { [delegates broadcastSelector: @selector(connection: - didThrowException::) + didThrowException:) withObject: self withObject: exception]; [self close]; return NO; } @@ -454,11 +454,11 @@ if (![self XMPP_parseBuffer: buffer length: length]) return NO; } @catch (id e) { [delegates broadcastSelector: @selector(connection: - didThrowException::) + didThrowException:) withObject: self withObject: e]; [self close]; return NO; } Index: tests/test.m ================================================================== --- tests/test.m +++ tests/test.m @@ -217,11 +217,17 @@ - (void)connection: (XMPPConnection*)conn didReceivePresence: (XMPPPresence*)pres { of_log(@"Presence: %@", pres); } + +- (void)connection: (XMPPConnection*)conn + didThrowException: (id)e +{ + @throw e; +} - (void)connectionWasClosed: (XMPPConnection*)conn { of_log(@"Connection was closed!"); } @end