diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c index 7a76aa84b6be1aab16d39338e12c23a80499b34a..9b88dd42321079b74c205a158e35e7f23effcd83 100644 --- a/pbx/pbx_spool.c +++ b/pbx/pbx_spool.c @@ -552,7 +552,7 @@ static void *scan_thread(void *unused) } #ifdef HAVE_INOTIFY - inotify_add_watch(inotify_fd, qdir, IN_CREATE | IN_MOVED_TO); + inotify_add_watch(inotify_fd, qdir, IN_CLOSE_WRITE | IN_MOVED_TO); #endif /* First, run through the directory and clear existing entries */