aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/io.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-10-06 00:55:54 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-10-06 00:55:54 +0200
commit101d84fe3018ba138a9cb5f0f030997e8ff7bdbe (patch)
tree045da14ac5aa924b65c9dc4d9b5d67fa727d9c99 /protocols/jabber/io.c
parentcc2cb2da3f1c0e2ad65708f4110e74e945ea9b66 (diff)
Added max. recursion depth arguments to xt_handle()/_cleanup() to make sure
commands that still have to be handled don't get (partially) cleaned up already.
Diffstat (limited to 'protocols/jabber/io.c')
-rw-r--r--protocols/jabber/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c
index 88ebf5d9..04b98626 100644
--- a/protocols/jabber/io.c
+++ b/protocols/jabber/io.c
@@ -169,7 +169,7 @@ static gboolean jabber_read_callback( gpointer data, gint fd, b_input_condition
}
/* Execute all handlers. */
- if( !xt_handle( jd->xt, NULL ) )
+ if( !xt_handle( jd->xt, NULL, 1 ) )
{
/* Don't do anything, the handlers should have
aborted the connection already... Or not? FIXME */
@@ -183,7 +183,7 @@ static gboolean jabber_read_callback( gpointer data, gint fd, b_input_condition
}
/* Garbage collection. */
- xt_cleanup( jd->xt, NULL );
+ xt_cleanup( jd->xt, NULL, 1 );
/* This is a bit hackish, unfortunately. Although xmltree
has nifty event handler stuff, it only calls handlers