cli: allow modifying default DBus timeout with `--timeout'
By default 30s will be used for every operation.
This commit is contained in:
@@ -315,6 +315,9 @@ get_sim_ready (GObject *source,
|
||||
&ctx->manager,
|
||||
&ctx->object);
|
||||
|
||||
/* Setup operation timeout */
|
||||
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->sim));
|
||||
|
||||
if (info_flag)
|
||||
g_assert_not_reached ();
|
||||
|
||||
@@ -402,6 +405,9 @@ mmcli_sim_run_synchronous (GDBusConnection *connection)
|
||||
&ctx->manager,
|
||||
&ctx->object);
|
||||
|
||||
/* Setup operation timeout */
|
||||
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->sim));
|
||||
|
||||
/* Request to get info from SIM? */
|
||||
if (info_flag) {
|
||||
g_debug ("Printing sim info...");
|
||||
|
Reference in New Issue
Block a user