[gnome-software] gs-plugin-loader: Ignore G_IO_ERROR_CANCELLED handling plugin errors



commit 502dc66bc8e46305f7b306facf335246fb28901c
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Oct 10 13:46:23 2019 +0100

    gs-plugin-loader: Ignore G_IO_ERROR_CANCELLED handling plugin errors
    
    Just like we ignore `GS_PLUGIN_ERROR_CANCELLED`. We’re never going to
    perfectly convert every possible GIO error from every possible call
    site.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 lib/gs-plugin-loader.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index fece927c..45b25b23 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -384,7 +384,8 @@ gs_plugin_error_handle_failure (GsPluginLoaderHelper *helper,
        }
 
        /* this is only ever informational */
-       if (g_error_matches (error_local, GS_PLUGIN_ERROR, GS_PLUGIN_ERROR_CANCELLED)) {
+       if (g_error_matches (error_local, GS_PLUGIN_ERROR, GS_PLUGIN_ERROR_CANCELLED) ||
+           g_error_matches (error_local, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
                g_debug ("ignoring error cancelled: %s", error_local->message);
                return TRUE;
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]