No more problems when events get scheduled during event processing.
This commit is contained in:
parent
50fe90edf3
commit
ebc793a5f5
1 changed files with 2 additions and 3 deletions
|
@ -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 a new issue