[libdazzle] recursive-monitor: ignore things after cancellation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] recursive-monitor: ignore things after cancellation
- Date: Thu, 30 Nov 2017 11:07:12 +0000 (UTC)
commit a7d5350c7683558d42552e8d6c1601dd8ab53dd1
Author: Christian Hergert <chergert redhat com>
Date: Thu Nov 30 03:06:54 2017 -0800
recursive-monitor: ignore things after cancellation
src/files/dzl-recursive-file-monitor.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/files/dzl-recursive-file-monitor.c b/src/files/dzl-recursive-file-monitor.c
index 11a4fe5..098acef 100644
--- a/src/files/dzl-recursive-file-monitor.c
+++ b/src/files/dzl-recursive-file-monitor.c
@@ -119,6 +119,9 @@ dzl_recursive_file_monitor_changed (DzlRecursiveFileMonitor *self,
g_assert (!other_file || G_IS_FILE (file));
g_assert (G_IS_FILE_MONITOR (monitor));
+ if (g_cancellable_is_cancelled (self->cancellable))
+ return;
+
if (dzl_recursive_file_monitor_ignored (self, file))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]