equal
deleted
inserted
replaced
115 -- We have some character data in the buffer |
115 -- We have some character data in the buffer |
116 stanza:text(t_concat(chardata)); |
116 stanza:text(t_concat(chardata)); |
117 chardata = {}; |
117 chardata = {}; |
118 end |
118 end |
119 -- Complete stanza |
119 -- Complete stanza |
120 if #stanza.last_add == 0 then |
120 local last_add = stanza.last_add; |
|
121 if not last_add or #last_add == 0 then |
121 if tagname ~= stream_error_tag then |
122 if tagname ~= stream_error_tag then |
122 cb_handlestanza(session, stanza); |
123 cb_handlestanza(session, stanza); |
123 else |
124 else |
124 cb_error(session, "stream-error", stanza); |
125 cb_error(session, "stream-error", stanza); |
125 end |
126 end |