Ver código fonte

Note that a descriptor has changed when we receive a new directory.

svn:r4855
Nick Mathewson 20 anos atrás
pai
commit
9a3be928e9
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      src/or/dirserv.c

+ 4 - 0
src/or/dirserv.c

@@ -371,6 +371,10 @@ dirserv_add_descriptor(const char **desc, const char **msg)
   if (router_add_to_routerlist(ri, msg)) {
     return -1;
   } else {
+    smartlist_t *changed = smartlist_create();
+    smartlist_add(changed, ri);
+    control_event_descriptors_changed(changed);
+    smartlist_free(changed);
     return ri->is_verified ? 1 : 0;
   }
 }