From 528553be57ba3955055e42e676201ebfc019390a Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 2 May 2021 18:55:14 +0200 Subject: xmlstream: do not re-send queued stanzas on each connect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit each sent stanza should be purged, obviously… --- slixmpp/xmlstream/xmlstream.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3