mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 22:55:56 -05:00
Delete event after disarming timer (maybe not necessary, but for safety)
This commit is contained in:
parent
cf5b702460
commit
965df4fdfc
@ -506,9 +506,9 @@ pb_timer_stop(void)
|
|||||||
memset(&next, 0, sizeof(struct itimerspec));
|
memset(&next, 0, sizeof(struct itimerspec));
|
||||||
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
event_del(pb_timer_ev);
|
|
||||||
|
|
||||||
ret = timerfd_settime(pb_timer_fd, TFD_TIMER_ABSTIME, &next, NULL);
|
ret = timerfd_settime(pb_timer_fd, TFD_TIMER_ABSTIME, &next, NULL);
|
||||||
|
|
||||||
|
event_del(pb_timer_ev);
|
||||||
#else
|
#else
|
||||||
ret = timer_settime(pb_timer, TIMER_ABSTIME, &next, NULL);
|
ret = timer_settime(pb_timer, TIMER_ABSTIME, &next, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user