diff options
author | xengineering <me@xengineering.eu> | 2023-07-04 14:01:51 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-07-04 14:01:51 +0200 |
commit | 3826f3ee7850590142fe51747447dffece332762 (patch) | |
tree | 07b5ea7e23239b1c2ac435faf956d2011205aee4 | |
parent | e5257c8a9c3dfcda52fb96fcac2ac81aefb52e55 (diff) | |
download | limox-3826f3ee7850590142fe51747447dffece332762.tar limox-3826f3ee7850590142fe51747447dffece332762.tar.zst limox-3826f3ee7850590142fe51747447dffece332762.zip |
Just pass parsed data if successful
-rw-r--r-- | xmpp/streams.go | 4 |
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 } |