From 3826f3ee7850590142fe51747447dffece332762 Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 4 Jul 2023 14:01:51 +0200 Subject: Just pass parsed data if successful --- xmpp/streams.go | 4 ++-- 1 file 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 } -- cgit v1.2.3-70-g09d2