mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-08-24 18:01:48 +02:00
No more problems when events get scheduled during event processing.
This commit is contained in:
parent
50fe90edf3
commit
ebc793a5f5
@ -77,12 +77,11 @@ int
|
|||||||
ev_run_list(event_list *l)
|
ev_run_list(event_list *l)
|
||||||
{
|
{
|
||||||
node *n, *p;
|
node *n, *p;
|
||||||
int keep = 0;
|
|
||||||
|
|
||||||
WALK_LIST_DELSAFE(n, p, *l)
|
WALK_LIST_DELSAFE(n, p, *l)
|
||||||
{
|
{
|
||||||
event *e = SKIP_BACK(event, n, n);
|
event *e = SKIP_BACK(event, n, n);
|
||||||
keep += ev_run(e);
|
ev_run(e);
|
||||||
}
|
}
|
||||||
return keep;
|
return !EMPTY_LIST(*l);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user