From 8f8bcd7724e8c75cf7e0460946c04624ce6ed46a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 25 Jul 2012 10:04:20 +0200 Subject: cli: allow modifying default DBus timeout with `--timeout' By default 30s will be used for every operation. --- cli/mmcli-modem-time.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cli/mmcli-modem-time.c') diff --git a/cli/mmcli-modem-time.c b/cli/mmcli-modem-time.c index d17c1dee..6918833c 100644 --- a/cli/mmcli-modem-time.c +++ b/cli/mmcli-modem-time.c @@ -202,6 +202,10 @@ get_modem_ready (GObject *source, ctx->object = mmcli_get_modem_finish (result, &ctx->manager); ctx->modem_time = mm_object_get_modem_time (ctx->object); + /* Setup operation timeout */ + if (ctx->modem_time) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_time)); + ensure_modem_time (); /* Request to get network time from the modem? */ @@ -247,6 +251,10 @@ mmcli_modem_time_run_synchronous (GDBusConnection *connection) &ctx->manager); ctx->modem_time = mm_object_get_modem_time (ctx->object); + /* Setup operation timeout */ + if (ctx->modem_time) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_time)); + ensure_modem_time (); /* Request to get network time from the modem? */ -- cgit v1.2.3-70-g09d2