mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-21 09:11:54 +00: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)
|
||||
{
|
||||
node *n, *p;
|
||||
int keep = 0;
|
||||
|
||||
WALK_LIST_DELSAFE(n, p, *l)
|
||||
{
|
||||
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