summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-07-04 14:01:51 +0200
committerxengineering <me@xengineering.eu>2023-07-04 14:01:51 +0200
commit3826f3ee7850590142fe51747447dffece332762 (patch)
tree07b5ea7e23239b1c2ac435faf956d2011205aee4
parente5257c8a9c3dfcda52fb96fcac2ac81aefb52e55 (diff)
downloadlimox-3826f3ee7850590142fe51747447dffece332762.tar
limox-3826f3ee7850590142fe51747447dffece332762.tar.zst
limox-3826f3ee7850590142fe51747447dffece332762.zip
Just pass parsed data if successful
-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
}