xmlstream: fix use of the waiting queue
This commit is contained in:
parent
3630c3d1cc
commit
a4789acbfb
1 changed files with 1 additions and 1 deletions
|
@ -1146,7 +1146,7 @@ class XMLStream(asyncio.BaseProtocol):
|
||||||
or isinstance(data, Handshake)
|
or isinstance(data, Handshake)
|
||||||
)
|
)
|
||||||
if isinstance(data, (RootStanza, str)) and not passthrough:
|
if isinstance(data, (RootStanza, str)) and not passthrough:
|
||||||
self.__queued_stanzas.append(data)
|
self.__queued_stanzas.append((data, use_filters))
|
||||||
log.debug('NOT SENT: %s %s', type(data), data)
|
log.debug('NOT SENT: %s %s', type(data), data)
|
||||||
return
|
return
|
||||||
self.waiting_queue.put_nowait((data, use_filters))
|
self.waiting_queue.put_nowait((data, use_filters))
|
||||||
|
|
Loading…
Reference in a new issue