From: David Goulet Date: Wed, 25 Apr 2018 18:12:38 +0000 (-0400) Subject: clean_consdiffmgr() callback is only for directories X-Git-Tag: tor-0.3.4.1-alpha~102^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6f7e23bbde7ae8c50360665a7ff2f0839e9219e;p=thirdparty%2Ftor.git clean_consdiffmgr() callback is only for directories Only relevant for directory servers. Signed-off-by: David Goulet --- diff --git a/src/or/main.c b/src/or/main.c index ffe4073295..37eacd2c11 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;