diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-25 10:04:20 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-07-25 11:44:01 +0200 |
commit | 8f8bcd7724e8c75cf7e0460946c04624ce6ed46a (patch) | |
tree | bd2d0a9050977197fb0ac2e50eeb75e8f8dd2f5e /cli/mmcli-modem-messaging.c | |
parent | 8a34e417943df90f6b43a0de08550def557c7db7 (diff) |
cli: allow modifying default DBus timeout with `--timeout'
By default 30s will be used for every operation.
Diffstat (limited to 'cli/mmcli-modem-messaging.c')
-rw-r--r-- | cli/mmcli-modem-messaging.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/mmcli-modem-messaging.c b/cli/mmcli-modem-messaging.c index 3c62408b..60f03efb 100644 --- a/cli/mmcli-modem-messaging.c +++ b/cli/mmcli-modem-messaging.c @@ -252,6 +252,10 @@ get_modem_ready (GObject *source, ctx->object = mmcli_get_modem_finish (result, &ctx->manager); ctx->modem_messaging = mm_object_get_modem_messaging (ctx->object); + /* Setup operation timeout */ + if (ctx->modem_messaging) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_messaging)); + ensure_modem_messaging (); /* Request to list SMS? */ @@ -327,6 +331,10 @@ mmcli_modem_messaging_run_synchronous (GDBusConnection *connection) &ctx->manager); ctx->modem_messaging = mm_object_get_modem_messaging (ctx->object); + /* Setup operation timeout */ + if (ctx->modem_messaging) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_messaging)); + ensure_modem_messaging (); /* Request to list the SMS? */ |