Skip to content
Snippets Groups Projects
Commit b3b8e2f4 authored by Thibg's avatar Thibg
Browse files

Fix TraceBack in the case of failure in jingle content negotiation

parent 3b7eaa68
No related branches found
No related tags found
No related merge requests found
......@@ -427,13 +427,13 @@ class JingleSession(object):
# error.
# Lets check what kind of jingle session does the peer want
contents, contents_rejected, reason = self.__parse_contents(jingle)
contents, contents_rejected, reason_txt = self.__parse_contents(jingle)
# If there's no content we understand...
if not contents:
# TODO: http://xmpp.org/extensions/xep-0166.html#session-terminate
reason = xmpp.Node('reason')
reason.setTag(reason)
reason.setTag(reason_txt)
self.__ack(stanza, jingle, error, action)
self._session_terminate(reason)
raise xmpp.NodeProcessed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment