diff options
Diffstat (limited to 'cli/mmcli-modem-simple.c')
-rw-r--r-- | cli/mmcli-modem-simple.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/mmcli-modem-simple.c b/cli/mmcli-modem-simple.c index 53277038..b961a6e2 100644 --- a/cli/mmcli-modem-simple.c +++ b/cli/mmcli-modem-simple.c @@ -323,6 +323,10 @@ get_modem_ready (GObject *source, ctx->object = mmcli_get_modem_finish (result, &ctx->manager); ctx->modem_simple = mm_object_get_modem_simple (ctx->object); + /* Setup operation timeout */ + if (ctx->modem_simple) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_simple)); + ensure_modem_simple (); /* Request to connect the modem? */ @@ -402,6 +406,10 @@ mmcli_modem_simple_run_synchronous (GDBusConnection *connection) &ctx->manager); ctx->modem_simple = mm_object_get_modem_simple (ctx->object); + /* Setup operation timeout */ + if (ctx->modem_simple) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_simple)); + ensure_modem_simple (); if (connect_str) |