Commit ebc793a5 authored by Martin Mareš's avatar Martin Mareš

No more problems when events get scheduled during event processing.

parent 50fe90ed
......@@ -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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment