From 9d533d77625e7520fd5a00c67423d7583f948100 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 1 May 2014 22:29:27 +0800 Subject: [PATCH] Monitor.vala --- Monitor.vala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Monitor.vala b/Monitor.vala index 231582b9..3bdc9469 100644 --- a/Monitor.vala +++ b/Monitor.vala @@ -178,7 +178,7 @@ public class Monitor : Object while (true) { try { - next_file = file_enum.next_file(null)); + next_file = file_enum.next_file(null); } catch (Error e) { break; } @@ -212,8 +212,11 @@ public class Monitor : Object this.monitor(sp, fn, depth + 1); } - - file_enum.close(null); + try { + file_enum.close(null); + } catch(Error e) { + // ignore? + } } -- 2.39.2