cli: allow modifying default DBus timeout with `--timeout'
By default 30s will be used for every operation.
This commit is contained in:
@@ -248,6 +248,9 @@ get_manager_ready (GObject *source,
|
||||
{
|
||||
ctx->manager = mmcli_get_manager_finish (result);
|
||||
|
||||
/* Setup operation timeout */
|
||||
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->manager));
|
||||
|
||||
/* Request to set log level? */
|
||||
if (set_logging_str) {
|
||||
mm_manager_set_logging (ctx->manager,
|
||||
@@ -327,6 +330,9 @@ mmcli_manager_run_synchronous (GDBusConnection *connection)
|
||||
ctx = g_new0 (Context, 1);
|
||||
ctx->manager = mmcli_get_manager_sync (connection);
|
||||
|
||||
/* Setup operation timeout */
|
||||
mmcli_force_operation_timeout (G_DBUS_PROXY (ctx->manager));
|
||||
|
||||
/* Request to set log level? */
|
||||
if (set_logging_str) {
|
||||
gboolean result;
|
||||
|
Reference in New Issue
Block a user