Add -[asyncConnectAndHandle].

This commit is contained in:
Jonathan Schleifer 2012-12-13 23:29:12 +01:00
parent 00a064a4a5
commit 4978c42916
3 changed files with 76 additions and 6 deletions

View file

@ -117,12 +117,7 @@ OF_APPLICATION_DELEGATE(AppDelegate)
[conn setPassword: [arguments objectAtIndex: 2]];
[conn setResource: @"ObjXMPP"];
@try {
[conn connect];
[conn handleConnection];
} @catch (id e) {
of_log(@"%@", e);
}
[conn asyncConnectAndHandle];
}
- (void)connection: (XMPPConnection*)conn