This commit is contained in:
Pierre-Olivier Latour 2014-04-15 21:53:02 -03:00
parent 1f503aa3b6
commit 9c73736225

View File

@ -365,6 +365,7 @@ static void _NetServiceClientCallBack(CFNetServiceRef service, CFStreamError* er
#if !TARGET_OS_IPHONE #if !TARGET_OS_IPHONE
- (BOOL)runWithPort:(NSUInteger)port { - (BOOL)runWithPort:(NSUInteger)port {
DCHECK([NSThread isMainThread]);
BOOL success = NO; BOOL success = NO;
_run = YES; _run = YES;
void (*handler)(int) = signal(SIGINT, _SignalHandler); void (*handler)(int) = signal(SIGINT, _SignalHandler);