# HG changeset patch # User Goffi # Date 1517466101 -3600 # Node ID ed1d71b91b2980a32de855de1f61b907a70bf0dc # Parent 031aa3cc67ac1899ceeac3e66b5a750b7efa0286 plugin XEP-0166: added errback to terminate, which only logs issues diff -r 031aa3cc67ac -r ed1d71b91b29 src/plugins/plugin_xep_0166.py --- a/src/plugins/plugin_xep_0166.py Tue Jan 30 08:43:52 2018 +0100 +++ b/src/plugins/plugin_xep_0166.py Thu Feb 01 07:21:41 2018 +0100 @@ -140,6 +140,9 @@ 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 @@ 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 ##