cli: allow modifying default DBus timeout with `--timeout'

By default 30s will be used for every operation.
This commit is contained in:
Aleksander Morgado
2012-07-25 11:44:01 +02:00
parent 8a34e41794
commit 8f8bcd7724
12 changed files with 100 additions and 3 deletions
+8
View File
@@ -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? */