Fix content reject
This commit is contained in:
parent
62d6f408c2
commit
08b7f18f50
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue