Move sync

This commit is contained in:
Bob Mottram 2017-06-11 20:00:11 +01:00
parent 1208d8f860
commit 9e03077219
1 changed files with 1 additions and 7 deletions

View File

@ -58,7 +58,6 @@ function wait_for_onion_service_base {
sleep_ctr=0 sleep_ctr=0
while [ ! -f ${HIDDEN_SERVICE_PATH}${onion_service_name}/hostname ]; do while [ ! -f ${HIDDEN_SERVICE_PATH}${onion_service_name}/hostname ]; do
sleep 1 sleep 1
sync
sleep_ctr=$((sleep_ctr + 1)) sleep_ctr=$((sleep_ctr + 1))
if [ $sleep_ctr -gt 10 ]; then if [ $sleep_ctr -gt 10 ]; then
break break
@ -76,12 +75,7 @@ function wait_for_onion_service {
onion_update onion_update
wait_for_onion_service_base ${onion_service_name} wait_for_onion_service_base ${onion_service_name}
fi fi
sync
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
} }
function remove_onion_service { function remove_onion_service {