[telepathy-butterfly/master] In case of error, end the call, don't just remove the stream from the session because it's not removed correctly.. fix it correctly later...

Youness Alaoui youness.alaoui at collabora.co.uk
Wed Nov 11 14:37:36 PST 2009


---
 butterfly/channel/media.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/butterfly/channel/media.py b/butterfly/channel/media.py
index 0124c6f..db9e8c0 100644
--- a/butterfly/channel/media.py
+++ b/butterfly/channel/media.py
@@ -207,7 +207,9 @@ class ButterflyMediaChannel(
     #StreamHandler event
     def on_stream_error(self, handler, error, message):
         self.StreamError(handler.id, error, message)
-        self._call.media_session.remove_stream(handler.stream)
+        # TODO: properly remove the stream without ending the whole
+        # call unless it was the last stream of the session.
+        self._call.end()
 
     #StreamHandler event
     def on_stream_state_changed(self, handler, state):
-- 
1.5.6.5



More information about the telepathy-commits mailing list