mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-18 12:39:22 +00:00
store the last eventID before processing anything to avoid mutliple events
This commit is contained in:
1 parent
759de8f45f
commit
e940f294a6
1 file changed
+3
-3
@@ -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]];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user