diff options
Diffstat (limited to 'cli/mmcli-modem-3gpp.c')
-rw-r--r-- | cli/mmcli-modem-3gpp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/mmcli-modem-3gpp.c b/cli/mmcli-modem-3gpp.c index dc344567..010f4c8b 100644 --- a/cli/mmcli-modem-3gpp.c +++ b/cli/mmcli-modem-3gpp.c @@ -551,8 +551,9 @@ get_modem_ready (GObject *source, if (scan_flag) { g_debug ("Asynchronously scanning for networks..."); - /* Setup operation timeout: 5 minutes (to match MM internal timeout) */ - g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (ctx->modem_3gpp), 5 * 60 * 1000); + /* Setup operation timeout: 5 minutes 17 seconds (to match MM internal + * timeout with a bit of slack) */ + g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (ctx->modem_3gpp), ((5 * 60) + 17) * 1000); mm_modem_3gpp_scan (ctx->modem_3gpp, ctx->cancellable, (GAsyncReadyCallback)scan_ready, @@ -564,8 +565,9 @@ get_modem_ready (GObject *source, if (register_in_operator_str || register_home_flag) { g_debug ("Asynchronously registering the modem..."); - /* Setup operation timeout: 2 minutes (to match MM internal timeout) */ - g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (ctx->modem_3gpp), 2 * 60 * 1000); + /* Setup operation timeout: 2 minutes 2 seconds (to match MM internal + * timeout with a bit of slack) */ + g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (ctx->modem_3gpp), ((2 * 60) + 2) * 1000); mm_modem_3gpp_register (ctx->modem_3gpp, (register_in_operator_str ? register_in_operator_str : ""), ctx->cancellable, |