Commit a4789acb authored by mathieui's avatar mathieui

xmlstream: fix use of the waiting queue

parent 3630c3d1
......@@ -1146,7 +1146,7 @@ class XMLStream(asyncio.BaseProtocol):
or isinstance(data, Handshake)
if isinstance(data, (RootStanza, str)) and not passthrough:
self.__queued_stanzas.append((data, use_filters))
log.debug('NOT SENT: %s %s', type(data), data)
self.waiting_queue.put_nowait((data, use_filters))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment