소스 검색

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

svn:r4855
Nick Mathewson 21 년 전
부모
커밋
9a3be928e9
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  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;
   }
 }