From 9e03077219f6491166bc0cf757282118f53251ce Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 11 Jun 2017 20:00:11 +0100 Subject: [PATCH] Move sync --- src/freedombone-utils-onion | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index c545205d..24be7963 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -58,7 +58,6 @@ function wait_for_onion_service_base { sleep_ctr=0 while [ ! -f ${HIDDEN_SERVICE_PATH}${onion_service_name}/hostname ]; do sleep 1 - sync sleep_ctr=$((sleep_ctr + 1)) if [ $sleep_ctr -gt 10 ]; then break @@ -76,12 +75,7 @@ function wait_for_onion_service { onion_update wait_for_onion_service_base ${onion_service_name} fi - - if [ ! -f ${HIDDEN_SERVICE_PATH}${onion_service_name}/hostname ]; then - # try a third time - onion_update - wait_for_onion_service_base ${onion_service_name} - fi + sync } function remove_onion_service {