Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use Cappuccino runloop to send events

  • Loading branch information...
commit ea24ed10ea0fb86be46279d62abbed5a1b7bd3c3 1 parent 17fbf21
Antoine Mercadal authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 TNStropheConnection.j
7 TNStropheConnection.j
View
@@ -336,10 +336,15 @@
*/
- (void)send:(TNStropheStanza)aStanza
{
+ [[CPRunLoop currentRunLoop] performSelector:@selector(performSend:) target:self argument:aStanza order:0 modes:[CPDefaultRunLoopMode]];
+}
+
+- (void)performSend:(TNStropheStanza)aStanza
+{
CPLog.trace("StropheCappuccino Stanza Send:")
CPLog.trace(aStanza);
-
_connection.send([aStanza tree]);
+ [self flush];
}
/*! publish a PEP payload
Please sign in to comment.
Something went wrong with that request. Please try again.