aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-03-17 01:35:41 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-03-17 01:35:41 +0800
commitf81f32ba04373720879d9d2ec4f81386cafa3ce0 (patch)
treec5635ab4b50deb0f071f67d015ae7654f906e5b7 /libempathy
parentb89b3915f04dc811e99a483b85ffe33f2cbafd9c (diff)
downloadgsoc2013-empathy-f81f32ba04373720879d9d2ec4f81386cafa3ce0.tar
gsoc2013-empathy-f81f32ba04373720879d9d2ec4f81386cafa3ce0.tar.gz
gsoc2013-empathy-f81f32ba04373720879d9d2ec4f81386cafa3ce0.tar.bz2
gsoc2013-empathy-f81f32ba04373720879d9d2ec4f81386cafa3ce0.tar.lz
gsoc2013-empathy-f81f32ba04373720879d9d2ec4f81386cafa3ce0.tar.xz
gsoc2013-empathy-f81f32ba04373720879d9d2ec4f81386cafa3ce0.tar.zst
gsoc2013-empathy-f81f32ba04373720879d9d2ec4f81386cafa3ce0.zip
Remove previous hack, it was stupid, we have a param to increase dbus timeout now that we use tp-glib API.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@812 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-contact-factory.c37
1 files changed, 8 insertions, 29 deletions
diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c
index 91389a802..4737b2fb7 100644
--- a/libempathy/empathy-tp-contact-factory.c
+++ b/libempathy/empathy-tp-contact-factory.c
@@ -215,35 +215,13 @@ tp_contact_factory_request_aliases_cb (TpConnection *connection,
gpointer user_data,
GObject *tp_factory)
{
- EmpathyTpContactFactoryPriv *priv = GET_PRIV (tp_factory);
- guint *handles = user_data;
- guint i = 0;
- const gchar **name;
+ guint *handles = user_data;
+ guint i = 0;
+ const gchar **name;
if (error) {
- GArray handles_array;
- guint size = 0;
-
empathy_debug (DEBUG_DOMAIN, "Error requesting aliases: %s",
error->message);
-
- /* FIXME: Sometimes the dbus call timesout because CM takes
- * too much time to request all aliases from the server,
- * that's why we retry. */
- while (handles[size] != 0) {
- size++;
- }
- handles = g_memdup (handles, (size + 1) * sizeof (guint));
- handles_array.len = size;
- handles_array.data = (gchar*) handles;
-
- tp_cli_connection_interface_aliasing_call_request_aliases (priv->connection,
- -1,
- &handles_array,
- tp_contact_factory_request_aliases_cb,
- handles, g_free,
- G_OBJECT (tp_factory));
-
return;
}
@@ -621,11 +599,12 @@ tp_contact_factory_request_everything (EmpathyTpContactFactory *tp_factory,
dup_handles, g_free,
G_OBJECT (tp_factory));
- dup_handles = g_new (guint, handles->len + 1);
- g_memmove (dup_handles, handles->data, handles->len * sizeof (guint));
- dup_handles[handles->len] = 0;
+ /* FIXME: Sometimes the dbus call timesout because CM takes
+ * too much time to request all aliases from the server,
+ * that's why we increase the timeout here. See fd.o bug #14795 */
+ dup_handles = g_memdup (handles->data, handles->len * sizeof (guint));
tp_cli_connection_interface_aliasing_call_request_aliases (priv->connection,
- -1,
+ 5*60*1000,
handles,
tp_contact_factory_request_aliases_cb,
dup_handles, g_free,