summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index 9a8478ae..647baa36 100644
--- a/main.cpp
+++ b/main.cpp
@@ -116,9 +116,11 @@ static void printHelp(FILE *out,const char *cn)
static void _CBresultHandler(void *arg,const char *line)
{
- if ((line)&&(line[0])) {
- fprintf(stdout,"%s"ZT_EOL_S,line);
- } else *((bool *)arg) = true;
+ if (line) {
+ if ((line[0] == '.')&&(line[1] == (char)0))
+ *((bool *)arg) = true;
+ else fprintf(stdout,"%s"ZT_EOL_S,line);
+ }
}
#ifdef __WINDOWS__
@@ -160,7 +162,7 @@ static int main(int argc,char **argv)
}
client.send(query.c_str());
while (!done)
- Thread::sleep(250); // ghetto
+ Thread::sleep(100); // ghetto
} catch ( ... ) {
fprintf(stderr,"%s: fatal error: unable to connect (is ZeroTier One running?)"ZT_EOL_S,argv[0]);
return 1;