summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmpp/decoder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/decoder.go b/xmpp/decoder.go
index 070f791..9a2e435 100644
--- a/xmpp/decoder.go
+++ b/xmpp/decoder.go
@@ -45,7 +45,7 @@ func (r *decoder) run() {
if err != nil {
log.Println("Could not flush debug output after receive!")
}
- r.data <- t
+ r.data <- xml.CopyToken(t)
}
if err != nil {
if errors.Is(err, io.EOF) {