Commit 84d835d5 authored by Saul Ibarra's avatar Saul Ibarra

Fixed cancelling proposal from AudioSessionItem.end

parent 9bc41112
...@@ -1585,7 +1585,7 @@ class AudioSessionItem(object): ...@@ -1585,7 +1585,7 @@ class AudioSessionItem(object):
return self.blink_session.info.duration return self.blink_session.info.duration
def end(self): def end(self):
if self.audio_stream in self.blink_session.streams.proposed: if self.audio_stream in self.blink_session.streams.proposed and self.blink_session.state == 'connected/sent_proposal':
self.blink_session.sip_session.cancel_proposal() self.blink_session.sip_session.cancel_proposal()
elif len(self.blink_session.streams) > 1 and self.blink_session.state == 'connected': elif len(self.blink_session.streams) > 1 and self.blink_session.state == 'connected':
self.blink_session.remove_stream(self.audio_stream) self.blink_session.remove_stream(self.audio_stream)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment