diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-09-19 17:32:23 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-09-19 17:32:23 +0200 |
commit | bce9c6b26500a2d225faacf83f21215dab86b736 (patch) | |
tree | 04cdeeb22b39a39fc063d1a40740e9dc5a802778 /src/master.c | |
parent | 06a9d8c8d4bb42474ac1cfe8c69a332d8587fc8a (diff) | |
download | biruda-bce9c6b26500a2d225faacf83f21215dab86b736.tar.gz biruda-bce9c6b26500a2d225faacf83f21215dab86b736.tar.bz2 |
removed sleeps (not needed)
Diffstat (limited to 'src/master.c')
-rw-r--r-- | src/master.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/master.c b/src/master.c index 5e78aa2..ecd5d19 100644 --- a/src/master.c +++ b/src/master.c @@ -10,8 +10,6 @@ #include <stdio.h> #include <string.h> -#include "sleep.h" - static pthread_t master_thread; static int master_sock; static int master_must_terminate = 0; @@ -29,9 +27,8 @@ static void *master_func( void *thread_data ) printf( "master connected to %s\n", control ); -NEXT_DISCOVER: - sleep( 1 ); - +NEXT_DISCOVER: + ; json_object *obj = json_object_new_object( ); json_object *op = json_object_new_string( "discover" ); json_object_object_add( obj, "op", op ); @@ -55,8 +52,6 @@ NEXT_DISCOVER: printf( "master idle: %d\n", master_must_terminate ); - sleep( 1 ); - char *answer = NULL; bytes = nn_recv( master_sock, &answer, NN_MSG, 0 ); if( master_must_terminate ) continue; |