Add -[asyncConnectAndHandle].
This commit is contained in:
parent
00a064a4a5
commit
4978c42916
3 changed files with 76 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue