[Telepathy-commits] [telepathy-gabble/master] tube-dbus: use the DBusServer and not the address when checking if dbus_server_listen succeeds or not

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Fri Sep 19 08:16:28 PDT 2008


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

diff --git a/src/tube-dbus.c b/src/tube-dbus.c
index d3a5772..e95c803 100644
--- a/src/tube-dbus.c
+++ b/src/tube-dbus.c
@@ -307,7 +307,7 @@ tube_dbus_open (GabbleTubeDBus *self)
       dbus_error_init (&error);
       priv->dbus_srv = dbus_server_listen (priv->dbus_srv_addr, &error);
 
-      if (priv->dbus_srv_addr != NULL)
+      if (priv->dbus_srv != NULL)
         break;
 
       DEBUG ("dbus_server_listen failed (try %u): %s: %s", i, error.name,
@@ -315,7 +315,7 @@ tube_dbus_open (GabbleTubeDBus *self)
       dbus_error_free (&error);
     }
 
-  if (priv->dbus_srv_addr == NULL)
+  if (priv->dbus_srv == NULL)
     {
       DEBUG ("all attempts failed. Close the tube");
       do_close (self);
-- 
1.5.6.5




More information about the Telepathy-commits mailing list