From 8b9d7da59feea3078bf7f60ed562c1ce57498f4a Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Sun, 7 Nov 2004 23:19:12 +0000 Subject: [PATCH] while we hibernate, our declared bandwidth capacity is 0 svn:r2710 --- src/or/router.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/or/router.c b/src/or/router.c index 568f7624a5..7530c34e77 100644 --- a/src/or/router.c +++ b/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; }