aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 3afefcb3e..3478008db 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -330,6 +330,9 @@ static void run_scheduled_events(time_t now) {
* Hope this doesn't bite us later. */
directory_initiate_command(router_pick_directory_server(),
DIR_CONN_STATE_CONNECTING_FETCH);
+ } else {
+ /* We're a directory; dump any old descriptors. */
+ dirserv_remove_old_servers();
}
time_to_fetch_directory = now + options.DirFetchPostPeriod;
}