| 
														
															@@ -575,7 +575,7 @@ directory_info_has_arrived(time_t now, int from_cache) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       !we_are_hibernating()) { /* connect to the appropriate routers */ 
														 | 
														
														 | 
														
															       !we_are_hibernating()) { /* connect to the appropriate routers */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if (!authdir_mode(options)) 
														 | 
														
														 | 
														
															     if (!authdir_mode(options)) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       router_retry_connections(0, 1); 
														 | 
														
														 | 
														
															       router_retry_connections(0, 1); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    if (!from_cache) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if (!from_cache && has_completed_circuit) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       consider_testing_reachability(); 
														 | 
														
														 | 
														
															       consider_testing_reachability(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 } 
														 | 
														
														 | 
														
															 } 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -826,6 +826,7 @@ run_scheduled_events(time_t now) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     /* also, check religiously for reachability, if it's within the first 
														 | 
														
														 | 
														
															     /* also, check religiously for reachability, if it's within the first 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * 20 minutes of our uptime. */ 
														 | 
														
														 | 
														
															      * 20 minutes of our uptime. */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if (server_mode(options) && 
														 | 
														
														 | 
														
															     if (server_mode(options) && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        has_completed_circuit && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         stats_n_seconds_working < TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT && 
														 | 
														
														 | 
														
															         stats_n_seconds_working < TIMEOUT_UNTIL_UNREACHABILITY_COMPLAINT && 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         !we_are_hibernating()) 
														 | 
														
														 | 
														
															         !we_are_hibernating()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       consider_testing_reachability(); 
														 | 
														
														 | 
														
															       consider_testing_reachability(); 
														 |