aboutsummaryrefslogtreecommitdiff
path: root/cli/mmcli-modem-simple.c
diff options
context:
space:
mode:
authorDan Williams <dan@ioncontrol.co>2025-03-06 15:11:00 +0000
committerDan Williams <dan@ioncontrol.co>2025-03-06 15:11:00 +0000
commit9ab4b7de58d007ff405a071bca47977f9654e88f (patch)
tree90b840d4df82a73274af8eb85fc7b04328341a3a /cli/mmcli-modem-simple.c
parentc393a917c1095ec07b6da1d9e8460501059544c0 (diff)
parentf014f3843e51a66d3ab3d80d9b63d7c73fb55e10 (diff)
Merge request !1307 from 'scan-cli-timeouts'
broadband-modem,cli: slightly bump 3GPP scan timeout; add some cli dbus timeout slack https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/merge_requests/1307
Diffstat (limited to 'cli/mmcli-modem-simple.c')
-rw-r--r--cli/mmcli-modem-simple.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/mmcli-modem-simple.c b/cli/mmcli-modem-simple.c
index b09cd0fa..4efa77cd 100644
--- a/cli/mmcli-modem-simple.c
+++ b/cli/mmcli-modem-simple.c
@@ -210,9 +210,9 @@ get_modem_ready (GObject *source,
g_debug ("Asynchronously connecting the modem...");
- /* Setup operation timeout: 2 minutes (to match MM internal timeout) */
- g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (ctx->modem_simple), 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_simple), ((2 * 60) + 2) * 1000);
properties = mm_simple_connect_properties_new_from_string (connect_str, &error);
if (!properties) {
g_printerr ("Error parsing connect string: '%s'\n", error->message);