use terminationStatus, not lenght of the nib2cib output

This commit is contained in:
Antoine Mercadal committed 2011-06-19 19:24:45 +02:00
1 parent e97d4a8e72
commit c03b3c2d34
1 file changed
+3 -3
+3 -3
View File
@@ -230,13 +230,13 @@ void fsevents_callback(ConstFSEventStreamRef streamRef, void *userData, size_t n
NSData *stdOut;
stdOut = [[[task standardOutput] fileHandleForReading] availableData];
NSString *response;
response = [[NSString alloc] initWithData: stdOut
encoding: NSUTF8StringEncoding];
response = [[NSString alloc] initWithData:stdOut
encoding:NSUTF8StringEncoding];
NSLog(@"response was\n%@", response);
[_statusItem setTitle:@""];
if ([response length] == 0)
if ([task terminationStatus] == 0)
{
if (!shouldIgnoreDate)
{