decline request of an unknown file

This commit is contained in:
Jefry Lagrange 2012-08-29 20:31:27 -04:00
parent b20e054d55
commit d8978f7a08
2 changed files with 9 additions and 6 deletions

View File

@ -214,3 +214,5 @@ class JingleContent(object):
def destroy(self): def destroy(self):
self.callbacks = None self.callbacks = None
del self.session.contents[(self.creator, self.name)] del self.session.contents[(self.creator, self.name)]

View File

@ -527,6 +527,7 @@ class JingleSession(object):
log.warning('The peer ' + self.peerjid + \ log.warning('The peer ' + self.peerjid + \
' is requesting a ' + \ ' is requesting a ' + \
'file that we dont have') 'file that we dont have')
self.decline_session()
# If there's no content we understand... # If there's no content we understand...
if not contents: if not contents:
# TODO: http://xmpp.org/extensions/xep-0166.html#session-terminate # TODO: http://xmpp.org/extensions/xep-0166.html#session-terminate