diff options
author | Martin Mares <mj@ucw.cz> | 2000-01-16 17:39:16 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-01-16 17:39:16 +0000 |
commit | ebc793a5f552bb676014f771d81c074b7dd4345d (patch) | |
tree | 20db0a3e2810a5412650bd2e5fe078c0e13f8e59 /lib | |
parent | 50fe90edf3deab409ea7887c131bfe6ce89fa556 (diff) |
No more problems when events get scheduled during event processing.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/event.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/event.c b/lib/event.c index 8f72a70c..9ac80ac8 100644 --- a/lib/event.c +++ b/lib/event.c @@ -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); } |