mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
sched: Allow the new sched to react to new cons
This commit is contained in:
parent
ac73913d40
commit
a8c54ce581
4
changes/bug23537
Normal file
4
changes/bug23537
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
o Minor bugfixes (scheduler):
|
||||||
|
- When switching schedulers due to a consensus change, we didn't give the new
|
||||||
|
scheduler a chance to react to the consensus. Fix that. Fixes bug 23537;
|
||||||
|
bugfix on 0.3.2.1-alpha
|
@ -371,12 +371,13 @@ void
|
|||||||
scheduler_notify_networkstatus_changed(const networkstatus_t *old_c,
|
scheduler_notify_networkstatus_changed(const networkstatus_t *old_c,
|
||||||
const networkstatus_t *new_c)
|
const networkstatus_t *new_c)
|
||||||
{
|
{
|
||||||
|
/* Maybe the consensus param made us change the scheduler. */
|
||||||
|
set_scheduler();
|
||||||
|
|
||||||
/* Then tell the (possibly new) scheduler that we have a new consensus */
|
/* Then tell the (possibly new) scheduler that we have a new consensus */
|
||||||
if (the_scheduler->on_new_consensus) {
|
if (the_scheduler->on_new_consensus) {
|
||||||
the_scheduler->on_new_consensus(old_c, new_c);
|
the_scheduler->on_new_consensus(old_c, new_c);
|
||||||
}
|
}
|
||||||
/* Maybe the consensus param made us change the scheduler. */
|
|
||||||
set_scheduler();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user