Return IQ result on blocking push
This commit is contained in:
parent
2e9de7702f
commit
f22fa200ea
1 changed files with 5 additions and 2 deletions
|
@ -2090,8 +2090,11 @@ ConnectionHandlersBase, ConnectionJingle, ConnectionIBBytestream):
|
||||||
|
|
||||||
def _BlockingSetCB(self, con, iq_obj):
|
def _BlockingSetCB(self, con, iq_obj):
|
||||||
log.debug('_BlockingSetCB')
|
log.debug('_BlockingSetCB')
|
||||||
app.nec.push_incoming_event(BlockingEvent(None, conn=self,
|
app.nec.push_incoming_event(
|
||||||
stanza=iq_obj))
|
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
|
raise nbxmpp.NodeProcessed
|
||||||
|
|
||||||
def _nec_blocking(self, obj):
|
def _nec_blocking(self, obj):
|
||||||
|
|
Loading…
Add table
Reference in a new issue