Back off from thrashing shutdownIfUnreadableCheck, fix bug in control service.

This commit is contained in:
Adam Ierymenko 2014-09-17 14:19:58 -07:00
parent 2762db8408
commit 6b76cac6cf
2 changed files with 13 additions and 8 deletions

View file

@ -71,6 +71,7 @@ void NodeControlService::threadMain()
} else if ((_node->initialized())&&(_node->address())) {
Utils::snprintf(tmp,sizeof(tmp),"%s%.10llx",ZT_IPC_ENDPOINT_BASE,(unsigned long long)_node->address());
_listener = new IpcListener(tmp,&_CBcommandHandler,this);
break;
}
Thread::sleep(100); // wait for Node to start
}