cli: allow modifying default DBus timeout with `--timeout'
By default 30s will be used for every operation.
This commit is contained in:
@@ -252,6 +252,10 @@ get_modem_ready (GObject *source,
|
||||
ctx->object = mmcli_get_modem_finish (result, &ctx->manager);
|
||||
ctx->modem_messaging = mm_object_get_modem_messaging (ctx->object);
|
||||
|
||||
/* Setup operation timeout */
|
||||
if (ctx->modem_messaging)
|
||||
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_messaging));
|
||||
|
||||
ensure_modem_messaging ();
|
||||
|
||||
/* Request to list SMS? */
|
||||
@@ -327,6 +331,10 @@ mmcli_modem_messaging_run_synchronous (GDBusConnection *connection)
|
||||
&ctx->manager);
|
||||
ctx->modem_messaging = mm_object_get_modem_messaging (ctx->object);
|
||||
|
||||
/* Setup operation timeout */
|
||||
if (ctx->modem_messaging)
|
||||
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->modem_messaging));
|
||||
|
||||
ensure_modem_messaging ();
|
||||
|
||||
/* Request to list the SMS? */
|
||||
|
Reference in New Issue
Block a user