From 4662e84995cf9570c18361f6686bf5964fd86cba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Thu, 18 Sep 2014 23:41:07 +0200
Subject: First set of fixes
There are still some problems but at least it does something now.
---
utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'utils.c')
diff --git a/utils.c b/utils.c
index b727ef0..f7dd1b6 100644
--- a/utils.c
+++ b/utils.c
@@ -1214,11 +1214,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;
--
cgit v1.2.3