Commit afce869f authored by Saul Ibarra's avatar Saul Ibarra

Cancel audio stream proposal in AudioSessionItem.end if applicable

parent f41a747c
...@@ -1585,9 +1585,9 @@ class AudioSessionItem(object): ...@@ -1585,9 +1585,9 @@ class AudioSessionItem(object):
return self.blink_session.info.duration return self.blink_session.info.duration
def end(self): def end(self):
# this needs to consider the case where the audio stream is being added. in that case we need to cancel the proposal -Dan if self.audio_stream in self.blink_session.streams.proposed:
# however that information is not yet available (need the proposed flag on the streams) -Dan self.blink_session.sip_session.cancel_proposal()
if 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)
else: else:
self.blink_session.end() self.blink_session.end()
......
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