[Telepathy-commits] [telepathy-glib/master] tp_connection_manager_constructor: ensure an attempt to read the .manager file is always queued

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Feb 12 08:44:55 PST 2009


Previously, it wasn't clear whether an attempt would always be
queued or not.
---
 telepathy-glib/connection-manager.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/telepathy-glib/connection-manager.c b/telepathy-glib/connection-manager.c
index 67dedcb..68eb22f 100644
--- a/telepathy-glib/connection-manager.c
+++ b/telepathy-glib/connection-manager.c
@@ -1047,12 +1047,12 @@ tp_connection_manager_constructor (GType type,
     {
       self->priv->manager_file =
           tp_connection_manager_find_manager_file (self->name);
-
-      if (self->priv->manager_file_read_idle_id == 0)
-        self->priv->manager_file_read_idle_id = g_idle_add (
-            tp_connection_manager_idle_read_manager_file, self);
     }
 
+  if (self->priv->manager_file_read_idle_id == 0)
+    self->priv->manager_file_read_idle_id = g_idle_add (
+        tp_connection_manager_idle_read_manager_file, self);
+
   return (GObject *) self;
 }
 
-- 
1.5.6.5




More information about the telepathy-commits mailing list