[telepathy-butterfly/master] Don't create a new handler if the stream was created locally

Louis-Francis Ratté-Boulianne louis-francis.ratte-boulianne at collabora.co.uk
Thu Sep 10 06:48:15 PDT 2009


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

diff --git a/butterfly/channel/media.py b/butterfly/channel/media.py
index 87bc311..4441d68 100644
--- a/butterfly/channel/media.py
+++ b/butterfly/channel/media.py
@@ -156,6 +156,9 @@ class ButterflyMediaChannel(
 
     #papyon.event.media.MediaSessionEventInterface
     def on_stream_added(self, stream):
+        if stream.created_locally:
+            return # Stream handler is already existing
+
         handler = self._session_handler.NewStream(stream)
         logger.info("Media Stream %i added" % handler.id)
         self.StreamAdded(handler.id, self._handle, handler.type)
-- 
1.5.6.5




More information about the telepathy-commits mailing list