diff options
Diffstat (limited to 'cli/mmcli-modem-3gpp.c')
-rw-r--r-- | cli/mmcli-modem-3gpp.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/mmcli-modem-3gpp.c b/cli/mmcli-modem-3gpp.c index 22323eda..6d7be868 100644 --- a/cli/mmcli-modem-3gpp.c +++ b/cli/mmcli-modem-3gpp.c @@ -405,6 +405,12 @@ get_modem_ready (GObject *source, ctx->modem_3gpp = mm_object_get_modem_3gpp (ctx->object); ctx->modem_3gpp_ussd = mm_object_get_modem_3gpp_ussd (ctx->object); + /* Setup operation timeout */ + if (ctx->modem_3gpp) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_3gpp)); + if (ctx->modem_3gpp_ussd) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_3gpp_ussd)); + ensure_modem_3gpp (); if (ussd_status_flag) @@ -502,6 +508,12 @@ mmcli_modem_3gpp_run_synchronous (GDBusConnection *connection) ctx->modem_3gpp = mm_object_get_modem_3gpp (ctx->object); ctx->modem_3gpp_ussd = mm_object_get_modem_3gpp_ussd (ctx->object); + /* Setup operation timeout */ + if (ctx->modem_3gpp) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_3gpp)); + if (ctx->modem_3gpp_ussd) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_3gpp_ussd)); + ensure_modem_3gpp (); if (scan_flag) |