Third time lucky

This commit is contained in:
Bob Mottram 2017-06-11 18:20:08 +01:00
parent da5504ad59
commit 222601c2b6
1 changed files with 7 additions and 1 deletions

View File

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