cli,libmm-glib: set default timeout on manager DBus proxy

This patch fixes mmcli to set the default timeout on the manager proxy
interface (MmGdbusOrgFreedesktopModemManager1) instead of MMManager
itself. The later is not a GDBusProxy object.
This commit is contained in:
Ben Chan
2012-07-31 08:54:45 +02:00
committed by Aleksander Morgado
parent a448eabb3d
commit 60405ce4ff
3 changed files with 18 additions and 2 deletions
+2 -2
View File
@@ -249,7 +249,7 @@ get_manager_ready (GObject *source,
ctx->manager = mmcli_get_manager_finish (result);
/* Setup operation timeout */
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->manager));
mmcli_force_operation_timeout (mm_manager_get_proxy (ctx->manager));
/* Request to set log level? */
if (set_logging_str) {
@@ -331,7 +331,7 @@ mmcli_manager_run_synchronous (GDBusConnection *connection)
ctx->manager = mmcli_get_manager_sync (connection);
/* Setup operation timeout */
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->manager));
mmcli_force_operation_timeout (mm_manager_get_proxy (ctx->manager));
/* Request to set log level? */
if (set_logging_str) {