diff options
author | mathieui <mathieui@mathieui.net> | 2021-05-02 18:55:14 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-05-02 18:55:14 +0200 |
commit | 528553be57ba3955055e42e676201ebfc019390a (patch) | |
tree | b99a174d991a46b8bd04325cf5b31c4ef796a1f0 | |
parent | 6f4ac7e7cec0c15ba5d6732082b5270b046a377f (diff) | |
download | slixmpp-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.py | 1 |
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 |