소스 검색

Fix bug3183

George Kadianakis 13 년 전
부모
커밋
ce3b553926
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/or/status.c

+ 1 - 2
src/or/status.c

@@ -85,10 +85,9 @@ log_heartbeat(time_t now)
   const node_t *myself;
 
   or_options_t *options = get_options();
-  int is_server = server_mode(options);
   (void)now;
 
-  if (is_server) {
+  if (public_server_mode(options)) {
     /* Let's check if we are in the current cached consensus. */
     if (!(me = router_get_my_routerinfo()))
       return -1; /* Something stinks, we won't even attempt this. */