[jingle] JingleSession.remove_content: don't send session-terminate

This commit is contained in:
Thibaut Girka 2010-08-17 18:22:25 +02:00
parent e0ffa2d293
commit 91a28dc1ef
1 changed files with 1 additions and 4 deletions

View File

@ -192,11 +192,8 @@ class JingleSession(object):
""" """
if (creator, name) in self.contents: if (creator, name) in self.contents:
content = self.contents[(creator, name)] content = self.contents[(creator, name)]
if len(self.contents) > 1: self.__content_remove(content, reason)
self.__content_remove(content, reason)
self.contents[(creator, name)].destroy() self.contents[(creator, name)].destroy()
if not self.contents:
self.end_session()
def modify_content(self, creator, name, *someother): def modify_content(self, creator, name, *someother):
""" """