[Telepathy-commits] [telepathy-gabble/master] Remove the checks for the bytestream going from OPEN to INITIATING

Marco Barisione marco at barisione.org
Tue Jan 6 08:41:31 PST 2009


A bug in the SOCSK5 code allowed the bytestream to emit a
connection-error signal when the stream was already OPEN, so the
fallback code had to check for the state going to OPEN back to
INITIATING (for a fallback stream).
The checks are not useful anymore now that the bug is fixed.
---
 src/tube-stream.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/src/tube-stream.c b/src/tube-stream.c
index ba42bfa..4bcdf41 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -270,14 +270,6 @@ extra_bytestream_state_changed_cb (GabbleBytestreamIface *bytestream,
       guint source_id;
       DEBUG ("extra bytestream open");
 
-      /* The bytestream can go back from open to initiating in case of a
-       * multiple bytestream */
-      if (g_hash_table_lookup (priv->io_channel_to_watcher_source_id,
-            channel))
-        {
-          return;
-        }
-
       g_signal_connect (bytestream, "data-received",
           G_CALLBACK (data_received_cb), self);
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list