[Telepathy-commits] [telepathy-gabble/master] gabble_tube_dbus_listen: prevent it to be executed twice

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Oct 27 08:08:30 PDT 2008


---
 src/tube-dbus.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/tube-dbus.c b/src/tube-dbus.c
index 4fb7653..689ec8d 100644
--- a/src/tube-dbus.c
+++ b/src/tube-dbus.c
@@ -300,6 +300,9 @@ gabble_tube_dbus_listen (GabbleTubeDBus *self)
   GabbleTubeDBusPrivate *priv = GABBLE_TUBE_DBUS_GET_PRIVATE (self);
   guint i;
 
+  if (priv->dbus_srv != NULL)
+    return;
+
   g_signal_connect (priv->bytestream, "data-received",
       G_CALLBACK (data_received_cb), self);
 
-- 
1.5.6.5




More information about the Telepathy-commits mailing list