diff --git a/xmpp.go b/xmpp.go index d9d1506..920b04e 100644 --- a/xmpp.go +++ b/xmpp.go @@ -1555,7 +1555,7 @@ func (c *Client) nextEnd() (xml.EndElement, error) { c.p.Strict = false for { c.nextMutex.Lock() - to, err := c.p.RawToken() + to, err := c.p.Token() if err != nil || to == nil { c.nextMutex.Unlock() return xml.EndElement{}, err