[grilo-plugins] filesystem: Bail out early for cancelled operations
- From: Juan A. Suarez Romero <jasuarez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] filesystem: Bail out early for cancelled operations
- Date: Fri, 28 Feb 2014 19:10:54 +0000 (UTC)
commit 44f81e4ebdf69355806ec8b0276de9bbdc5509f2
Author: Bastien Nocera <hadess hadess net>
Date: Wed Feb 19 10:22:08 2014 +0100
filesystem: Bail out early for cancelled operations
https://bugzilla.gnome.org/show_bug.cgi?id=725203
src/filesystem/grl-filesystem.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/filesystem/grl-filesystem.c b/src/filesystem/grl-filesystem.c
index 5e55e98..89e58a9 100644
--- a/src/filesystem/grl-filesystem.c
+++ b/src/filesystem/grl-filesystem.c
@@ -700,6 +700,10 @@ recursive_operation_got_entry (GFile *directory, GAsyncResult *res, RecursiveOpe
enumerator = g_file_enumerate_children_finish (directory, res, &error);
if (error) {
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ g_error_free (error);
+ return;
+ }
GRL_WARNING ("Got error: %s", error->message);
g_error_free (error);
/* we couldn't get the children of this directory, but we probably have
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]