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-manager.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-manager.c')
-rw-r--r-- | cli/mmcli-manager.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/mmcli-manager.c b/cli/mmcli-manager.c index e9d9a93c..6dd00ac5 100644 --- a/cli/mmcli-manager.c +++ b/cli/mmcli-manager.c @@ -248,6 +248,9 @@ get_manager_ready (GObject *source, { ctx->manager = mmcli_get_manager_finish (result); + /* Setup operation timeout */ + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->manager)); + /* Request to set log level? */ if (set_logging_str) { mm_manager_set_logging (ctx->manager, @@ -327,6 +330,9 @@ mmcli_manager_run_synchronous (GDBusConnection *connection) ctx = g_new0 (Context, 1); ctx->manager = mmcli_get_manager_sync (connection); + /* Setup operation timeout */ + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->manager)); + /* Request to set log level? */ if (set_logging_str) { gboolean result; |