aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-sms.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-25 10:04:20 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-07-25 11:44:01 +0200
commit8f8bcd7724e8c75cf7e0460946c04624ce6ed46a (patch)
treebd2d0a9050977197fb0ac2e50eeb75e8f8dd2f5e /cli/mmcli-sms.c
parent8a34e417943df90f6b43a0de08550def557c7db7 (diff)
cli: allow modifying default DBus timeout with `--timeout'
By default 30s will be used for every operation.
Diffstat (limited to 'cli/mmcli-sms.c')
-rw-r--r--cli/mmcli-sms.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/mmcli-sms.c b/cli/mmcli-sms.c
index 8de3350c..e3e02104 100644
--- a/cli/mmcli-sms.c
+++ b/cli/mmcli-sms.c
@@ -220,6 +220,8 @@ get_sms_ready (GObject *source,
ctx->sms = mmcli_get_sms_finish (result,
&ctx->manager,
&ctx->object);
+ /* Setup operation timeout */
+ mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->sms));
if (info_flag)
g_assert_not_reached ();
@@ -274,6 +276,9 @@ mmcli_sms_run_synchronous (GDBusConnection *connection)
&ctx->manager,
&ctx->object);
+ /* Setup operation timeout */
+ mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->sms));
+
/* Request to get info from SMS? */
if (info_flag) {
g_debug ("Printing SMS info...");