summaryrefslogtreecommitdiff
path: root/xmpp/decoder.go
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp/decoder.go')
-rw-r--r--xmpp/decoder.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/xmpp/decoder.go b/xmpp/decoder.go
index 9a2e435..7139b5a 100644
--- a/xmpp/decoder.go
+++ b/xmpp/decoder.go
@@ -5,8 +5,6 @@ import (
"encoding/xml"
"log"
"os"
- "io"
- "errors"
)
type decoder struct {
@@ -48,11 +46,7 @@ func (r *decoder) run() {
r.data <- xml.CopyToken(t)
}
if err != nil {
- if errors.Is(err, io.EOF) {
- return
- } else {
- log.Printf("Decoding error: %v", err)
- }
+ return // FIXME disconnect on parsing error
}
}
}