summaryrefslogtreecommitdiff
path: root/src/feature
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-11-13 08:22:58 -0500
committerNick Mathewson <nickm@torproject.org>2018-11-15 11:17:22 -0500
commita0380b705daceb69c29ccda3a2f1453b9dcbc40d (patch)
tree4367f1e1481d3a42b655af792e9c66a1d3cda7b5 /src/feature
parentdb53bfe8f74dad1b45ba381a5ee3366148a30237 (diff)
downloadtor-a0380b705daceb69c29ccda3a2f1453b9dcbc40d.tar.gz
tor-a0380b705daceb69c29ccda3a2f1453b9dcbc40d.zip
Move control_per_second_events() into a callback with its own role
Part of making extra-dormant mode work; closes ticket 28421.
Diffstat (limited to 'src/feature')
-rw-r--r--src/feature/control/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/feature/control/control.c b/src/feature/control/control.c
index b31b448e96..a5b6ab3bf5 100644
--- a/src/feature/control/control.c
+++ b/src/feature/control/control.c
@@ -368,7 +368,7 @@ control_update_global_event_mask(void)
control_get_bytes_rw_last_sec(&r, &w);
}
if (any_old_per_sec_events != control_any_per_second_event_enabled()) {
- reschedule_per_second_timer();
+ rescan_periodic_events(get_options());
}
#undef NEWLY_ENABLED