Przeglądaj źródła

while we hibernate, our declared bandwidth capacity is 0

svn:r2710
Roger Dingledine 21 lat temu
rodzic
commit
8b9d7da59f
1 zmienionych plików z 2 dodań i 0 usunięć
  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;
 }