session-helper: remove un-needed file monitor actions on CREATED

CHANGES_DONE always fires after CREATED.

Closes: #1190
Approved by: alexlarsson
This commit is contained in:
Robert McQueen 2017-11-22 16:40:15 +00:00 committed by Atomic Bot
parent cb57c599dd
commit b31773b097

View File

@ -427,9 +427,10 @@ file_changed (GFileMonitor *monitor,
GFileMonitorEvent event_type,
char *source)
{
if (event_type == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT ||
event_type == G_FILE_MONITOR_EVENT_CREATED)
copy_file (source, monitor_dir);
if (event_type != G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT)
return;
copy_file (source, monitor_dir);
}
static void