summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmpp/streams.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp/streams.go b/xmpp/streams.go
index cc83934..b55b6f0 100644
--- a/xmpp/streams.go
+++ b/xmpp/streams.go
@@ -76,7 +76,7 @@ func streamFeaturesHandler(s *xml.StartElement, d *xml.Decoder, c chan<- any) {
err := d.DecodeElement(&e, s)
if err != nil {
log.Printf("Could not decode stream features: %v\n", err)
+ } else {
+ c <- e
}
-
- c <- e
}