It's now safe to call emp_cli_init multiple times. Move that call to empathy_tp_call_...
[empathy.git] / extensions / extensions-cli.c
index 98a17447885152c4b9ac094542b19570d2eb1b53..c75633c33cc2839890dc9994096cda50af505cae 100644 (file)
@@ -12,8 +12,14 @@ static void _emp_ext_register_dbus_glib_marshallers (void);
 void
 emp_cli_init (void)
 {
-  _emp_ext_register_dbus_glib_marshallers ();
+  static gboolean initilized = FALSE;
 
-  tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_PROXY,
-      emp_cli_misc_add_signals);
+  if (!initialized)
+    {
+      _emp_ext_register_dbus_glib_marshallers ();
+
+      tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_PROXY,
+          emp_cli_misc_add_signals);
+      initialized = TRUE;
+    }
 }