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