xmlstream: do not re-send queued stanzas on each connect
each sent stanza should be purged, obviously…
This commit is contained in:
parent
6f4ac7e7ce
commit
528553be57
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue