diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-19 01:06:42 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-09-19 01:06:42 +0200 |
commit | 21e75ebd552a582bbc4c9a58bc00fd2d321bb637 (patch) | |
tree | 9d6f5fd8134ad854d0721490f475f49c1e24f3a2 | |
parent | 37e1895fd0eee62b12834b18c23e46ea92ce556c (diff) | |
download | xK-21e75ebd552a582bbc4c9a58bc00fd2d321bb637.tar.gz xK-21e75ebd552a582bbc4c9a58bc00fd2d321bb637.tar.xz xK-21e75ebd552a582bbc4c9a58bc00fd2d321bb637.zip |
Fix removal from dispatch in timer callbacks
-rw-r--r-- | common.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1187,11 +1187,11 @@ poller_run (struct poller *self) if (n_fds == -1) exit_fatal ("%s: %s", "epoll", strerror (errno)); - poller_timers_dispatch (&self->timers); - self->dispatch_next = 0; self->dispatch_total = n_fds; + poller_timers_dispatch (&self->timers); + while (self->dispatch_next < self->dispatch_total) { struct epoll_event *revents = self->revents + self->dispatch_next; |