Third time lucky
This commit is contained in:
parent
da5504ad59
commit
222601c2b6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue