[gnome-settings-daemon] housekeeping: Don't print warning on call cancellation
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] housekeeping: Don't print warning on call cancellation
- Date: Wed, 16 Mar 2016 11:14:55 +0000 (UTC)
commit fc0e8b6dddde56d1d12f663a4493b56f2acbfc5e
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]