소스 검색

while we hibernate, our declared bandwidth capacity is 0

svn:r2710
Roger Dingledine 21 년 전
부모
커밋
8b9d7da59f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/or/router.c

+ 2 - 0
src/or/router.c

@@ -144,6 +144,8 @@ void router_set_bandwidth_capacity(int bw) {
 }
 /** Return the value we tucked away above, or zero by default. */
 int router_get_bandwidth_capacity(void) {
+  if (we_are_hibernating())
+    return 0;
   return bw_capacity;
 }