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):
return self.blink_session.info.duration
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
# however that information is not yet available (need the proposed flag on the streams) -Dan
if len(self.blink_session.streams) > 1 and self.blink_session.state == 'connected':
if self.audio_stream in self.blink_session.streams.proposed:
self.blink_session.sip_session.cancel_proposal()
elif len(self.blink_session.streams) > 1 and self.blink_session.state == 'connected':
self.blink_session.remove_stream(self.audio_stream)
else:
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