소스 검색

clean_consdiffmgr() callback is only for directories

Only relevant for directory servers.

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet 6 년 전
부모
커밋
b6f7e23bbd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/or/main.c

+ 1 - 1
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;