Explorar o código

while we hibernate, our declared bandwidth capacity is 0

svn:r2710
Roger Dingledine %!s(int64=21) %!d(string=hai) anos
pai
achega
8b9d7da59f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;
 }