Fix a stupid error in gfilenotify.c.

* src/gfilenotify.c (dir_monitor_callback): Cancel monitor only,
if we've got a `deleted' signal AND the file name is the watched one.
This commit is contained in:
Michael Albinus 2015-11-03 18:17:53 +01:00
parent fcfa23911d
commit 436ed2399a

View file

@ -110,6 +110,7 @@ dir_monitor_callback (GFileMonitor *monitor,
/* Cancel monitor if file or directory is deleted. */
if (!NILP (Fmember (symbol, list2 (Qdeleted, Qmoved))) &&
(strcmp (name, SSDATA (XCAR (XCDR (watch_object)))) == 0) &&
!g_file_monitor_is_cancelled (monitor))
g_file_monitor_cancel (monitor);
}