forked from jshiffer/go-xmpp
NextEnd: Use Token() instead of RawToken()
I assumed RawToken would be better suited here, but there were errors parsing messages that could be fixed by reverting to Token().
This commit is contained in:
parent
78d07e9eee
commit
ce687243c1
2
xmpp.go
2
xmpp.go
@ -1555,7 +1555,7 @@ func (c *Client) nextEnd() (xml.EndElement, error) {
|
|||||||
c.p.Strict = false
|
c.p.Strict = false
|
||||||
for {
|
for {
|
||||||
c.nextMutex.Lock()
|
c.nextMutex.Lock()
|
||||||
to, err := c.p.RawToken()
|
to, err := c.p.Token()
|
||||||
if err != nil || to == nil {
|
if err != nil || to == nil {
|
||||||
c.nextMutex.Unlock()
|
c.nextMutex.Unlock()
|
||||||
return xml.EndElement{}, err
|
return xml.EndElement{}, err
|
||||||
|
Loading…
Reference in New Issue
Block a user