diff options
author | Matthew Wild <mwild1@gmail.com> | 2021-05-10 17:02:37 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2021-05-10 17:02:37 +0100 |
commit | 7cb3ec61d5117fa1be7077ea9efaef4d4e52ca57 (patch) | |
tree | df791783e2b0cd7ce2c2e2ad2716541ff91f4390 /util/xmppstream.lua | |
parent | 1e42cdef094e3c34d0c3791d5d2b55d1726d8313 (diff) | |
download | prosody-7cb3ec61d5117fa1be7077ea9efaef4d4e52ca57.tar.gz prosody-7cb3ec61d5117fa1be7077ea9efaef4d4e52ca57.zip |
util.xmppstream: Mark bytes for stream closure as handled
Diffstat (limited to 'util/xmppstream.lua')
-rw-r--r-- | util/xmppstream.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/xmppstream.lua b/util/xmppstream.lua index e2c24c8a..57e1def3 100644 --- a/util/xmppstream.lua +++ b/util/xmppstream.lua @@ -188,6 +188,9 @@ local function new_sax_handlers(session, stream_callbacks, cb_handleprogress) stanza = t_remove(stack); end else + if lxp_supports_bytecount then + cb_handleprogress(stanza_size); + end if cb_streamclosed then cb_streamclosed(session); end |