Skip to content
Snippets Groups Projects
Commit adaf3e9b authored by David Goulet's avatar David Goulet :panda_face:
Browse files

sched: Avoid adding the same channel twice to the KIST pending list


This is the quick fix that is keeping the channel in PENDING state so if we
ever try to reschedule the same channel, it won't happened.

Fixes #24700

Signed-off-by: David Goulet's avatarDavid Goulet <dgoulet@torproject.org>
parent df312b3c
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes (scheduler, KIST):
- Avoid adding the same channel twice in the KIST scheduler pending list
wasting CPU cycles at handling the same channel twice. Fixes bug 24700;
bugfix on 0.3.2.1-alpha.
......@@ -693,7 +693,6 @@ kist_scheduler_run(void)
* after the scheduling loop is over. They can hopefully be taken care of
* in the next scheduling round.
*/
chan->scheduler_state = SCHED_CHAN_WAITING_TO_WRITE;
if (!to_readd) {
to_readd = smartlist_new();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment