summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmpp.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmpp.go b/xmpp.go
index 015b9e1..a0aaba7 100644
--- a/xmpp.go
+++ b/xmpp.go
@@ -80,7 +80,8 @@ func (r *xmppReceiver) run() {
log.Print(err)
}
if t != nil {
- r.data <- t
+ c := xml.CopyToken(t)
+ r.data <- c
}
}
}