Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
Fixed semaphore for getNameSynchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkypumpkin committed Oct 19, 2014
1 parent 8233e88 commit 39b3481
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Programme.m
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ - (void)getName
NSString *tempData = [[NSString alloc] initWithData:inData encoding:NSUTF8StringEncoding];
[getNameData appendString:tempData];
}
[self performSelectorOnMainThread:@selector(processGetNameData:) withObject:getNameData waitUntilDone:NO];
[self performSelectorOnMainThread:@selector(processGetNameData:) withObject:getNameData waitUntilDone:YES];
getNameRunning = false;
}
}

Expand Down Expand Up @@ -522,7 +523,6 @@ - (void)processGetNameData:(NSString *)getNameData
else
{
[p setProcessedPID:@YES];
getNameRunning = false;
}

}
Expand Down Expand Up @@ -582,7 +582,8 @@ -(void)spawnGetNameFromPIDThreadWitProxyDict:(NSDictionary *)proxyDict
NSString *tempData = [[NSString alloc] initWithData:inData encoding:NSUTF8StringEncoding];
[getNameData appendString:tempData];
}
[self performSelectorOnMainThread:@selector(processGetNameDataFromPID:) withObject:getNameData waitUntilDone:NO];
[self performSelectorOnMainThread:@selector(processGetNameDataFromPID:) withObject:getNameData waitUntilDone:YES];
getNameRunning = false;
}
}

Expand Down Expand Up @@ -650,7 +651,6 @@ - (void)processGetNameDataFromPID:(NSString *)getNameData
[p setValue:@"Unknown: PID Not Found" forKey:@"showName"];
}
[p setProcessedPID:@NO];
getNameRunning = false;
}

@synthesize showName;
Expand Down

1 comment on commit 39b3481

@willson556
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes issue #413.

Please sign in to comment.