Fix TraceBack in the case of failure in jingle content negotiation

This commit is contained in:
Thibaut GIRKA 2010-03-15 19:25:27 +01:00
parent 3b7eaa6866
commit b3b8e2f46b
1 changed files with 2 additions and 2 deletions

View File

@ -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