[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] don"t try to upload hidden service descriptors until we have



Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or

Modified Files:
	main.c 
Log Message:
don't try to upload hidden service descriptors until we have
established a circuit.


Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.617
retrieving revision 1.618
diff -u -p -d -r1.617 -r1.618
--- main.c	29 Jan 2006 01:11:41 -0000	1.617
+++ main.c	1 Feb 2006 02:19:46 -0000	1.618
@@ -895,7 +895,7 @@ run_scheduled_events(time_t now)
   circuit_close_all_marked();
 
   /** 7. And upload service descriptors if necessary. */
-  if (have_dir_info && !we_are_hibernating())
+  if (has_completed_circuit && !we_are_hibernating())
     rend_consider_services_upload(now);
 
   /** 8. and blow away any connections that need to die. have to do this now,