mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2026-05-24 12:53:46 -07:00
@@ -1493,11 +1493,12 @@ func (c *Client) nextEnd() (xml.EndElement, error) {
|
|||||||
c.p.Strict = false
|
c.p.Strict = false
|
||||||
for {
|
for {
|
||||||
c.nextMutex.Lock()
|
c.nextMutex.Lock()
|
||||||
t, err := c.p.RawToken()
|
to, err := c.p.RawToken()
|
||||||
if err != nil || t == nil {
|
if err != nil || to == nil {
|
||||||
c.nextMutex.Unlock()
|
c.nextMutex.Unlock()
|
||||||
return xml.EndElement{}, err
|
return xml.EndElement{}, err
|
||||||
}
|
}
|
||||||
|
t := xml.CopyToken(to)
|
||||||
switch t := t.(type) {
|
switch t := t.(type) {
|
||||||
case xml.EndElement:
|
case xml.EndElement:
|
||||||
c.nextMutex.Unlock()
|
c.nextMutex.Unlock()
|
||||||
|
|||||||
Reference in New Issue
Block a user