Merge branch 'disconnected-stanzas-no-resend' into 'master'

xmlstream: do not re-send queued stanzas on each connect

See merge request poezio/slixmpp!163
This commit is contained in:
mathieui 2021-05-02 19:02:38 +02:00
commit b7f0160c0d

View file

@ -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