From 6e5d6e449eec0879b11fa2ea95f192717baddeaa Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Tue, 2 Apr 2024 15:48:34 +0200 Subject: [PATCH] Remove checking for xml.Endelement in nextStart(). This seems to have negative side effects on parsing in next() --- xmpp.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xmpp.go b/xmpp.go index 81443b7..d23ebec 100644 --- a/xmpp.go +++ b/xmpp.go @@ -1537,14 +1537,6 @@ func (c *Client) nextStart() (xml.StartElement, error) { case xml.StartElement: c.nextMutex.Unlock() return t, nil - // Also check for stream end element and stop waiting - // for new start elements if we received a closing stream - // element. - case xml.EndElement: - if t.Name.Local == "stream" { - c.nextMutex.Unlock() - return xml.StartElement{}, nil - } } c.nextMutex.Unlock() }