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

[or-cvs] r8311: Fix two corner cases in router_dir_info_changed(). This shou (in tor/trunk: . src/or)



Author: nickm
Date: 2006-08-31 14:46:46 -0400 (Thu, 31 Aug 2006)
New Revision: 8311

Modified:
   tor/trunk/
   tor/trunk/src/or/routerlist.c
Log:
 r8695@Kushana:  nickm | 2006-08-31 14:35:36 -0400
 Fix two corner cases in router_dir_info_changed().  This should have no observable effect.



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r8695] on c95137ef-5f19-0410-b913-86e773d04f59

Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c	2006-08-31 17:39:51 UTC (rev 8310)
+++ tor/trunk/src/or/routerlist.c	2006-08-31 18:46:46 UTC (rev 8311)
@@ -591,6 +591,7 @@
     });
   }
   last_networkstatus_download_attempted = 0;
+  router_dir_info_changed();
 }
 
 /** Reset all internal variables used to count failed downloads of network
@@ -1270,6 +1271,8 @@
   if (routerlist->mmap_descriptors)
     tor_munmap_file(routerlist->mmap_descriptors);
   tor_free(rl);
+
+  router_dir_info_changed();
 }
 
 void
@@ -3771,7 +3774,7 @@
 
 /** DOCDOC
  * Must change when authorities change, networkstatuses change, or list of
- * routerdescs changes.
+ * routerdescs changes, or number of running routers changes.
  */
 static void
 router_dir_info_changed(void)