summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2021-05-02 18:55:14 +0200
committermathieui <mathieui@mathieui.net>2021-05-02 18:55:14 +0200
commit528553be57ba3955055e42e676201ebfc019390a (patch)
treeb99a174d991a46b8bd04325cf5b31c4ef796a1f0
parent6f4ac7e7cec0c15ba5d6732082b5270b046a377f (diff)
downloadslixmpp-528553be57ba3955055e42e676201ebfc019390a.tar.gz
slixmpp-528553be57ba3955055e42e676201ebfc019390a.tar.bz2
slixmpp-528553be57ba3955055e42e676201ebfc019390a.tar.xz
slixmpp-528553be57ba3955055e42e676201ebfc019390a.zip
xmlstream: do not re-send queued stanzas on each connect
each sent stanza should be purged, obviously…
-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