store the last eventID before processing anything to avoid mutliple events

This commit is contained in:
Antoine Mercadal committed 2011-11-07 21:20:39 +01:00
1 parent 759de8f45f
commit e940f294a6
1 file changed
+3 -3
+3 -3
View File
@@ -34,9 +34,11 @@ void fsevents_callback(ConstFSEventStreamRef streamRef,
TNXCodeCapp *xcc = (TNXCodeCapp *)userData;
BOOL useFileBasedListening = [xcc supportsFileBasedListening];
size_t i;
for (i = 0; i < numEvents; i++)
{
[xcc updateLastEventId:eventIds[i]];
NSString *path = [[(NSArray *)eventPaths objectAtIndex:i] stringByStandardizingPath];
BOOL isDir = NO;
@@ -137,7 +139,5 @@ void fsevents_callback(ConstFSEventStreamRef streamRef,
}
}
}
[xcc updateLastEventId:eventIds[i]];
}
}