mirror of
https://github.com/troglobit/libuev.git
synced 2026-11-10 16:31:08 +00:00
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:
1 parent
3b31079a1c
commit
9e7f6865fc
1 file changed
+1
-3
@@ -123,11 +123,9 @@ int uev_timer_set(uev_t *w, int timeout, int period)
|
|||||||
msec2tspec(timeout, &time.it_value);
|
msec2tspec(timeout, &time.it_value);
|
||||||
msec2tspec(period, &time.it_interval);
|
msec2tspec(period, &time.it_interval);
|
||||||
timerfd_settime(w->fd, 0, &time, NULL);
|
timerfd_settime(w->fd, 0, &time, NULL);
|
||||||
|
|
||||||
return uev_watcher_start(w);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return uev_watcher_start(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user