0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 08:38:42 +00:00

No more problems when events get scheduled during event processing.

This commit is contained in:
Martin Mares 2000-01-16 17:39:16 +00:00
parent 50fe90edf3
commit ebc793a5f5

View File

@ -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);
}