uev_timer_set(): Bugfix, call uev_watcher_start() even if not running yet!

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2015-06-09 13:05:55 +02:00
parent 3b31079a1c
commit 9e7f6865fc
+1 -3
View File
@@ -123,11 +123,9 @@ int uev_timer_set(uev_t *w, int timeout, int period)
msec2tspec(timeout, &time.it_value);
msec2tspec(period, &time.it_interval);
timerfd_settime(w->fd, 0, &time, NULL);
return uev_watcher_start(w);
}
return 0;
return uev_watcher_start(w);
}
/**