summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-10 11:40:45 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-04-10 11:40:45 -0700
commit9e651b39e416171812d0dd3835a0cb9958aed264 (patch)
tree96c13a53faee912191467fed2d033458aae6f85b /main.cpp
parent08a11a6f32329d26e5e85b7f66e66591d2fd1069 (diff)
downloadinfinitytier-9e651b39e416171812d0dd3835a0cb9958aed264.tar.gz
infinitytier-9e651b39e416171812d0dd3835a0cb9958aed264.zip
Add some TRACE around pinging (for now), and refactor service/One to just run in the foreground as some platforms may not require threads at all.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 07584020..7d38c463 100644
--- a/main.cpp
+++ b/main.cpp
@@ -37,7 +37,7 @@ using namespace ZeroTier;
int main(int argc,char **argv)
{
One *one = One::newInstance("/tmp/foo",12345);
- one->waitForTermination();
+ one->run();
printf("termination reason: %d, message: %s\n",(int)one->reasonForTermination(),one->fatalErrorMessage().c_str());
return 0;
}