diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-10-12 19:41:16 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-10-12 19:41:16 +0000 |
commit | aac738d2be56ca33af08650616444de0bffe0c14 (patch) | |
tree | bc151aeee6820b3633c1caca21be02a64b34f2ce | |
parent | 905ef987e2bbbd8fefe7878e41a20f43c02ec867 (diff) | |
download | tor-aac738d2be56ca33af08650616444de0bffe0c14.tar.gz tor-aac738d2be56ca33af08650616444de0bffe0c14.zip |
When no descriptors changed, do not send a NEWDESC event.
svn:r5244
-rw-r--r-- | src/or/routerlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index bf20f55982..e0c69b65a5 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1451,7 +1451,8 @@ router_load_routers_from_string(const char *s, int from_cache, smartlist_add(changed, ri); }); - control_event_descriptors_changed(changed); + if (smartlist_len(changed)) + control_event_descriptors_changed(changed); router_rebuild_store(0); |