[empathy] pkg-kit: use an 'infinite' timeout when calling	InstallPackageNames
- From: Guillaume Desmottes <gdesmott src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [empathy] pkg-kit: use an 'infinite' timeout when calling	InstallPackageNames
 
- Date: Mon, 27 Aug 2012 13:55:35 +0000 (UTC)
 
commit 02b2080bc1e3d75f5b88bfe22ce353bfe26f9a04
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Mon Aug 27 15:00:45 2012 +0200
    pkg-kit: use an 'infinite' timeout when calling InstallPackageNames
    
    This method can takes quiet a while before returning (if user has to enter his
    admin password for example).
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682802
 libempathy/empathy-pkg-kit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-pkg-kit.c b/libempathy/empathy-pkg-kit.c
index 259cd7f..1d01b93 100644
--- a/libempathy/empathy-pkg-kit.c
+++ b/libempathy/empathy-pkg-kit.c
@@ -112,7 +112,7 @@ pkg_kit_proxy_new_cb (GObject *source,
 
   g_dbus_proxy_call (proxy, "InstallPackageNames",
       g_variant_new ("(u^a&ss)", ctx->xid, ctx->packages, ctx->options),
-      G_DBUS_CALL_FLAGS_NONE, -1, NULL, install_package_names_cb, ctx);
+      G_DBUS_CALL_FLAGS_NONE, G_MAXINT, NULL, install_package_names_cb, ctx);
 
   g_object_unref (proxy);
 }
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]