[gnome-software: 14/20] gs-plugin-job: Tweak gs_plugin_job_to_string() to always print timeouts
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 14/20] gs-plugin-job: Tweak gs_plugin_job_to_string() to always print timeouts
- Date: Mon, 11 Jul 2022 08:41:48 +0000 (UTC)
commit bfdce294cba0cef03b548b520b60c66399e58cce
Author: Philip Withnall <pwithnall endlessos org>
Date: Fri Jul 1 18:09:26 2022 +0100
gs-plugin-job: Tweak gs_plugin_job_to_string() to always print timeouts
Seems unnecessary to only print them for certain actions. If a timeout
is set, it’s set.
Signed-off-by: Philip Withnall <pwithnall endlessos org>
Helps: #1472
lib/gs-plugin-job.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/lib/gs-plugin-job.c b/lib/gs-plugin-job.c
index 5af0813a4..b5ce7ab85 100644
--- a/lib/gs-plugin-job.c
+++ b/lib/gs-plugin-job.c
@@ -75,15 +75,7 @@ gs_plugin_job_to_string (GsPluginJob *self)
if (priv->propagate_error)
g_string_append_printf (str, " with propagate-error=True");
if (priv->timeout > 0)
- switch (priv->action) {
- case GS_PLUGIN_ACTION_GET_ALTERNATES:
- case GS_PLUGIN_ACTION_SEARCH:
- case GS_PLUGIN_ACTION_SEARCH_PROVIDES:
- g_string_append_printf (str, " with timeout=%u", priv->timeout);
- break;
- default:
- break;
- }
+ g_string_append_printf (str, " with timeout=%u", priv->timeout);
if (priv->max_results > 0)
g_string_append_printf (str, " with max-results=%u", priv->max_results);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]