Fix content reject

This commit is contained in:
Thibaut GIRKA 2009-09-26 12:31:56 +02:00
parent 62d6f408c2
commit 08b7f18f50
2 changed files with 7 additions and 1 deletions

View File

@ -157,6 +157,8 @@ class JingleSession(object):
def reject_content(self, media):
content = self.get_content(media)
if content:
if self.state == JingleStates.active:
self.__content_reject(content)
content.destroy()
self.on_session_state_changed()

View File

@ -4530,7 +4530,11 @@ class VoIPCallReceivedDialog(object):
if session.get_content('video'):
ctrl.set_video_state('connecting', self.sid)
else: # response==gtk.RESPONSE_NO
session.decline_session()
if not session.accepted:
session.decline_session()
else:
for content in self.content_types:
session.reject_content(content)
dialog.destroy()