aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gns/gns_api.c5
-rwxr-xr-xsrc/gns/test_gns_delegated_lookup.sh2
-rwxr-xr-xsrc/gns/test_gns_dht_lookup.sh2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/gns/gns_api.c b/src/gns/gns_api.c
index b75755e25..b2f54746f 100644
--- a/src/gns/gns_api.c
+++ b/src/gns/gns_api.c
@@ -422,6 +422,9 @@ process_message (void *cls, const struct GNUNET_MessageHeader *msg)
422 force_reconnect (handle); 422 force_reconnect (handle);
423 return; 423 return;
424 } 424 }
425
426 GNUNET_CLIENT_receive (handle->client, &process_message, handle,
427 GNUNET_TIME_UNIT_FOREVER_REL);
425 switch (ntohs (msg->type)) 428 switch (ntohs (msg->type))
426 { 429 {
427 case GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT: 430 case GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT:
@@ -447,8 +450,6 @@ process_message (void *cls, const struct GNUNET_MessageHeader *msg)
447 force_reconnect (handle); 450 force_reconnect (handle);
448 return; 451 return;
449 } 452 }
450 GNUNET_CLIENT_receive (handle->client, &process_message, handle,
451 GNUNET_TIME_UNIT_FOREVER_REL);
452} 453}
453 454
454 455
diff --git a/src/gns/test_gns_delegated_lookup.sh b/src/gns/test_gns_delegated_lookup.sh
index fc507444f..d1ea02176 100755
--- a/src/gns/test_gns_delegated_lookup.sh
+++ b/src/gns/test_gns_delegated_lookup.sh
@@ -7,7 +7,7 @@ if [ -z $LOCATION ]
7then 7then
8 LOCATION="gnunet-config" 8 LOCATION="gnunet-config"
9fi 9fi
10$LOCATION --version 10$LOCATION --version &> /dev/null
11if test $? != 0 11if test $? != 0
12then 12then
13 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" 13 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
diff --git a/src/gns/test_gns_dht_lookup.sh b/src/gns/test_gns_dht_lookup.sh
index ce19fcdde..37648d891 100755
--- a/src/gns/test_gns_dht_lookup.sh
+++ b/src/gns/test_gns_dht_lookup.sh
@@ -7,7 +7,7 @@ if [ -z $LOCATION ]
7then 7then
8 LOCATION="gnunet-config" 8 LOCATION="gnunet-config"
9fi 9fi
10$LOCATION --version 10$LOCATION --version &> /dev/null
11if test $? != 0 11if test $? != 0
12then 12then
13 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" 13 echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"