]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
while we hibernate, our declared bandwidth capacity is 0
authorRoger Dingledine <arma@torproject.org>
Sun, 7 Nov 2004 23:19:12 +0000 (23:19 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 7 Nov 2004 23:19:12 +0000 (23:19 +0000)
svn:r2710

src/or/router.c

index 568f7624a5f4e684ab409cf6ee1dadc6e156ae68..7530c34e7736202a09de2f6e69861936d12c4080 100644 (file)
@@ -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;
 }