]> git.0d.be Git - empathy.git/commitdiff
pkg-kit: use an 'infinite' timeout when calling InstallPackageNames
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 27 Aug 2012 13:00:45 +0000 (15:00 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 27 Aug 2012 13:53:41 +0000 (15:53 +0200)
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

index 259cd7f7dd95031eaf8ffac5117bfb85dc7bcf2f..1d01b931df6648edad15c974c5e32954ad8c5aec 100644 (file)
@@ -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);
 }