util.xmppstream: Mark bytes for stream closure as handled 0.11
authorMatthew Wild <mwild1@gmail.com>
Mon, 10 May 2021 17:02:37 +0100
branch0.11
changeset 11550 b21d8c286973
parent 11549 7b8a482f4efd
child 11551 dd21eb632f52
util.xmppstream: Mark bytes for stream closure as handled
util/xmppstream.lua
--- a/util/xmppstream.lua	Mon May 10 17:01:38 2021 +0100
+++ b/util/xmppstream.lua	Mon May 10 17:02:37 2021 +0100
@@ -188,6 +188,9 @@
 				stanza = t_remove(stack);
 			end
 		else
+			if lxp_supports_bytecount then
+				cb_handleprogress(stanza_size);
+			end
 			if cb_streamclosed then
 				cb_streamclosed(session);
 			end