Fix selector for exception handling in XMPPConnection
This commit is contained in:
parent
a221f4bd38
commit
c59185013e
2 changed files with 8 additions and 2 deletions
|
@ -443,7 +443,7 @@
|
|||
{
|
||||
if (exception != nil) {
|
||||
[delegates broadcastSelector: @selector(connection:
|
||||
didThrowException::)
|
||||
didThrowException:)
|
||||
withObject: self
|
||||
withObject: exception];
|
||||
[self close];
|
||||
|
@ -456,7 +456,7 @@
|
|||
return NO;
|
||||
} @catch (id e) {
|
||||
[delegates broadcastSelector: @selector(connection:
|
||||
didThrowException::)
|
||||
didThrowException:)
|
||||
withObject: self
|
||||
withObject: e];
|
||||
[self close];
|
||||
|
|
|
@ -220,6 +220,12 @@ OF_APPLICATION_DELEGATE(AppDelegate)
|
|||
of_log(@"Presence: %@", pres);
|
||||
}
|
||||
|
||||
- (void)connection: (XMPPConnection*)conn
|
||||
didThrowException: (id)e
|
||||
{
|
||||
@throw e;
|
||||
}
|
||||
|
||||
- (void)connectionWasClosed: (XMPPConnection*)conn
|
||||
{
|
||||
of_log(@"Connection was closed!");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue