diff options
Diffstat (limited to 'cli/mmcli-modem.c')
-rw-r--r-- | cli/mmcli-modem.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/cli/mmcli-modem.c b/cli/mmcli-modem.c index e3271a97..63542134 100644 --- a/cli/mmcli-modem.c +++ b/cli/mmcli-modem.c @@ -771,6 +771,14 @@ get_modem_ready (GObject *source, ctx->modem_3gpp = mm_object_get_modem_3gpp (ctx->object); ctx->modem_cdma = mm_object_get_modem_cdma (ctx->object); + /* Setup operation timeout */ + if (ctx->modem) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem)); + if (ctx->modem_3gpp) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_3gpp)); + if (ctx->modem_cdma) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_cdma)); + if (info_flag) g_assert_not_reached (); @@ -958,6 +966,14 @@ mmcli_modem_run_synchronous (GDBusConnection *connection) ctx->modem_3gpp = mm_object_get_modem_3gpp (ctx->object); ctx->modem_cdma = mm_object_get_modem_cdma (ctx->object); + /* Setup operation timeout */ + if (ctx->modem) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem)); + if (ctx->modem_3gpp) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_3gpp)); + if (ctx->modem_cdma) + mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_cdma)); + /* Request to get info from modem? */ if (info_flag) { g_debug ("Printing modem info..."); |