forked from jshiffer/go-xmpp
Remove checking for xml.Endelement in nextStart().
This seems to have negative side effects on parsing in next()
This commit is contained in:
parent
0ae62a33a2
commit
6e5d6e449e
8
xmpp.go
8
xmpp.go
@ -1537,14 +1537,6 @@ func (c *Client) nextStart() (xml.StartElement, error) {
|
|||||||
case xml.StartElement:
|
case xml.StartElement:
|
||||||
c.nextMutex.Unlock()
|
c.nextMutex.Unlock()
|
||||||
return t, nil
|
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()
|
c.nextMutex.Unlock()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user