| 
				
			 | 
			
			
				@@ -59,7 +59,7 @@ function wait_for_onion_service_base { 
			 | 
		
	
		
			
			| 
				59
			 | 
			
				59
			 | 
			
			
				     while [ ! -f ${HIDDEN_SERVICE_PATH}${onion_service_name}/hostname ]; do 
			 | 
		
	
		
			
			| 
				60
			 | 
			
				60
			 | 
			
			
				         sleep 1 
			 | 
		
	
		
			
			| 
				61
			 | 
			
				61
			 | 
			
			
				         sleep_ctr=$((sleep_ctr + 1)) 
			 | 
		
	
		
			
			| 
				62
			 | 
			
				
			 | 
			
			
				-        if [ $sleep_ctr -gt 20 ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				62
			 | 
			
			
				+        if [ $sleep_ctr -gt 10 ]; then 
			 | 
		
	
		
			
			| 
				63
			 | 
			
				63
			 | 
			
			
				             break 
			 | 
		
	
		
			
			| 
				64
			 | 
			
				64
			 | 
			
			
				         fi 
			 | 
		
	
		
			
			| 
				65
			 | 
			
				65
			 | 
			
			
				     done 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -75,6 +75,12 @@ function wait_for_onion_service { 
			 | 
		
	
		
			
			| 
				75
			 | 
			
				75
			 | 
			
			
				         onion_update 
			 | 
		
	
		
			
			| 
				76
			 | 
			
				76
			 | 
			
			
				         wait_for_onion_service_base ${onion_service_name} 
			 | 
		
	
		
			
			| 
				77
			 | 
			
				77
			 | 
			
			
				     fi 
			 | 
		
	
		
			
			| 
				
			 | 
			
				78
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				79
			 | 
			
			
				+    if [ ! -f ${HIDDEN_SERVICE_PATH}${onion_service_name}/hostname ]; then 
			 | 
		
	
		
			
			| 
				
			 | 
			
				80
			 | 
			
			
				+        # try a third time 
			 | 
		
	
		
			
			| 
				
			 | 
			
				81
			 | 
			
			
				+        onion_update 
			 | 
		
	
		
			
			| 
				
			 | 
			
				82
			 | 
			
			
				+        wait_for_onion_service_base ${onion_service_name} 
			 | 
		
	
		
			
			| 
				
			 | 
			
				83
			 | 
			
			
				+    fi 
			 | 
		
	
		
			
			| 
				78
			 | 
			
				84
			 | 
			
			
				 } 
			 | 
		
	
		
			
			| 
				79
			 | 
			
				85
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				80
			 | 
			
				86
			 | 
			
			
				 function remove_onion_service { 
			 |