cli: allow modifying default DBus timeout with `--timeout'
By default 30s will be used for every operation.
This commit is contained in:
@@ -220,6 +220,8 @@ get_sms_ready (GObject *source,
|
||||
ctx->sms = mmcli_get_sms_finish (result,
|
||||
&ctx->manager,
|
||||
&ctx->object);
|
||||
/* Setup operation timeout */
|
||||
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->sms));
|
||||
|
||||
if (info_flag)
|
||||
g_assert_not_reached ();
|
||||
@@ -274,6 +276,9 @@ mmcli_sms_run_synchronous (GDBusConnection *connection)
|
||||
&ctx->manager,
|
||||
&ctx->object);
|
||||
|
||||
/* Setup operation timeout */
|
||||
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->sms));
|
||||
|
||||
/* Request to get info from SMS? */
|
||||
if (info_flag) {
|
||||
g_debug ("Printing SMS info...");
|
||||
|
Reference in New Issue
Block a user