Move sync
This commit is contained in:
parent
1208d8f860
commit
9e03077219
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue