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

each sent stanza should be purged, obviously…
This commit is contained in:
mathieui 2021-05-02 18:55:14 +02:00
parent 6f4ac7e7ce
commit 528553be57

View file

@ -264,6 +264,7 @@ class XMLStream(asyncio.BaseProtocol):
self._session_started = True self._session_started = True
for stanza in self.__queued_stanzas: for stanza in self.__queued_stanzas:
self.waiting_queue.put_nowait(stanza) self.waiting_queue.put_nowait(stanza)
self.__queued_stanzas = []
def _set_disconnected(self, event): def _set_disconnected(self, event):
self._session_started = False self._session_started = False