[gnome-settings-daemon/gnome-3-18] housekeeping: Don't print warning on call cancellation



commit 9252575ae93e35099978c6c954655c73026e6de0
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 15 14:56:05 2016 +0100

    housekeeping: Don't print warning on call cancellation
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763689

 plugins/housekeeping/gsd-disk-space.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-disk-space.c b/plugins/housekeeping/gsd-disk-space.c
index 6ab80b1..7e7dc19 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -367,7 +367,8 @@ delete_subdir (GObject      *source,
 
         enumerator = g_file_enumerate_children_finish (file, res, &error);
         if (error) {
-                if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_DIRECTORY))
+                if (!g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_DIRECTORY) &&
+                    !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
                         g_warning ("Failed to enumerate children of %s: %s\n", data->name, error->message);
         }
         if (enumerator) {


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