[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] clean_consdiffmgr() callback is only for directories
commit b6f7e23bbde7ae8c50360665a7ff2f0839e9219e
Author: David Goulet <dgoulet@xxxxxxxxxxxxxx>
Date: Wed Apr 25 14:12:38 2018 -0400
clean_consdiffmgr() callback is only for directories
Only relevant for directory servers.
Signed-off-by: David Goulet <dgoulet@xxxxxxxxxxxxxx>
---
src/or/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/main.c b/src/or/main.c
index ffe407329..37eacd2c1 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -2318,7 +2318,7 @@ static int
clean_consdiffmgr_callback(time_t now, const or_options_t *options)
{
(void)now;
- if (server_mode(options)) {
+ if (dir_server_mode(options)) {
consdiffmgr_cleanup();
}
return CDM_CLEAN_CALLBACK_INTERVAL;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits