Return IQ result on blocking push

This commit is contained in:
Philipp Hörist 2017-10-15 15:53:28 +02:00
parent 2e9de7702f
commit f22fa200ea
1 changed files with 5 additions and 2 deletions

View File

@ -2090,8 +2090,11 @@ ConnectionHandlersBase, ConnectionJingle, ConnectionIBBytestream):
def _BlockingSetCB(self, con, iq_obj):
log.debug('_BlockingSetCB')
app.nec.push_incoming_event(BlockingEvent(None, conn=self,
stanza=iq_obj))
app.nec.push_incoming_event(
BlockingEvent(None, conn=self, stanza=iq_obj))
reply = nbxmpp.Iq(typ='result', attrs={'id': iq_obj.getID()},
to=iq_obj.getFrom(), frm=iq_obj.getTo(), xmlns=None)
self.connection.send(reply)
raise nbxmpp.NodeProcessed
def _nec_blocking(self, obj):