Skip to content
Snippets Groups Projects
Commit 8b9d7da5 authored by Roger Dingledine's avatar Roger Dingledine
Browse files

while we hibernate, our declared bandwidth capacity is 0

svn:r2710
parent 2640be28
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment