mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Threads shouldn't drop stopping loops
This commit is contained in:
parent
0fb9177374
commit
bf961ba405
@ -666,7 +666,6 @@ birdloop_take(struct birdloop_pickup_group *group)
|
||||
struct birdloop *loop = NULL;
|
||||
|
||||
LOCK_DOMAIN(attrs, group->domain);
|
||||
|
||||
int drop =
|
||||
this_thread->busy_active &&
|
||||
(group->thread_busy_count < group->thread_count) &&
|
||||
@ -683,7 +682,7 @@ birdloop_take(struct birdloop_pickup_group *group)
|
||||
WALK_LIST2(loop, n, this_thread->loops, n)
|
||||
{
|
||||
birdloop_enter(loop);
|
||||
if (ev_active(&loop->event))
|
||||
if (ev_active(&loop->event) && !loop->stopped)
|
||||
{
|
||||
LOOP_TRACE(loop, DL_SCHEDULING, "Dropping from thread");
|
||||
/* Pass to another thread */
|
||||
|
Loading…
Reference in New Issue
Block a user