summaryrefslogtreecommitdiff
path: root/xmpp/routing.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/routing.go')
-rw-r--r--xmpp/routing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmpp/routing.go b/xmpp/routing.go
index 8af3190..c691af3 100644
--- a/xmpp/routing.go
+++ b/xmpp/routing.go
@@ -30,6 +30,7 @@ func (r *tokenRouter) route(t xml.Token) error {
r.level += 1
if r.level == 1 {
r.start = unwrapped
+ r.buffer = r.buffer[:0]
// call start handler
}
case xml.EndElement: