summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-05-02 19:02:38 +0200
committermathieui <mathieui@mathieui.net>2021-05-02 19:02:38 +0200
commitb7f0160c0dbe9a63e9454818b1c228b9d007ef13 (patch)
treeb99a174d991a46b8bd04325cf5b31c4ef796a1f0
parent6f4ac7e7cec0c15ba5d6732082b5270b046a377f (diff)
parent528553be57ba3955055e42e676201ebfc019390a (diff)
downloadslixmpp-b7f0160c0dbe9a63e9454818b1c228b9d007ef13.tar.gz
slixmpp-b7f0160c0dbe9a63e9454818b1c228b9d007ef13.tar.bz2
slixmpp-b7f0160c0dbe9a63e9454818b1c228b9d007ef13.tar.xz
slixmpp-b7f0160c0dbe9a63e9454818b1c228b9d007ef13.zip
Merge branch 'disconnected-stanzas-no-resend' into 'master'
xmlstream: do not re-send queued stanzas on each connect See merge request poezio/slixmpp!163
-rw-r--r--slixmpp/xmlstream/xmlstream.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py
index ab9b781d..8d90abf8 100644
--- a/slixmpp/xmlstream/xmlstream.py
+++ b/slixmpp/xmlstream/xmlstream.py
@@ -264,6 +264,7 @@ class XMLStream(asyncio.BaseProtocol):
self._session_started = True
for stanza in self.__queued_stanzas:
self.waiting_queue.put_nowait(stanza)
+ self.__queued_stanzas = []
def _set_disconnected(self, event):
self._session_started = False