aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2021-05-10 17:02:37 +0100
committerMatthew Wild <mwild1@gmail.com>2021-05-10 17:02:37 +0100
commit7cb3ec61d5117fa1be7077ea9efaef4d4e52ca57 (patch)
treedf791783e2b0cd7ce2c2e2ad2716541ff91f4390
parent1e42cdef094e3c34d0c3791d5d2b55d1726d8313 (diff)
downloadprosody-7cb3ec61d5117fa1be7077ea9efaef4d4e52ca57.tar.gz
prosody-7cb3ec61d5117fa1be7077ea9efaef4d4e52ca57.zip
util.xmppstream: Mark bytes for stream closure as handled
-rw-r--r--util/xmppstream.lua3
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