From aac738d2be56ca33af08650616444de0bffe0c14 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 12 Oct 2005 19:41:16 +0000 Subject: When no descriptors changed, do not send a NEWDESC event. svn:r5244 --- src/or/routerlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3-54-g00ecf