From: Roger Dingledine Date: Sun, 7 Nov 2004 23:19:12 +0000 (+0000) Subject: while we hibernate, our declared bandwidth capacity is 0 X-Git-Tag: debian-version-0.0.8+0.0.9pre5-1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b9d7da59feea3078bf7f60ed562c1ce57498f4a;p=thirdparty%2Ftor.git while we hibernate, our declared bandwidth capacity is 0 svn:r2710 --- 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; }