plugin XEP-0166: added errback to terminate, which only logs issues
This commit is contained in:
parent
9ab577462d
commit
aec189c087
1 changed files with 4 additions and 0 deletions
|
|
@ -140,6 +140,9 @@ class XEP_0166(object):
|
|||
log.warning(u"Error while managing jingle session, cancelling: {condition}".format(error_condition))
|
||||
client.send(iq_elt)
|
||||
|
||||
def _terminateEb(self, failure_):
|
||||
log.warning(_(u"Error while terminating session: {msg}").format(msg=failure_))
|
||||
|
||||
def terminate(self, reason, session, profile):
|
||||
"""Terminate the session
|
||||
|
||||
|
|
@ -159,6 +162,7 @@ class XEP_0166(object):
|
|||
reason_elt.addChild(elt)
|
||||
self._delSession(client, session['id'])
|
||||
d = iq_elt.send()
|
||||
d.addErrback(self._terminateEb)
|
||||
return d
|
||||
|
||||
## errors which doesn't imply a stanza sending ##
|
||||
|
|
|
|||
Loading…
Reference in a new issue