mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 06:35:57 -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));
|
||||
|
||||
#if defined(__linux__)
|
||||
event_del(pb_timer_ev);
|
||||
|
||||
ret = timerfd_settime(pb_timer_fd, TFD_TIMER_ABSTIME, &next, NULL);
|
||||
|
||||
event_del(pb_timer_ev);
|
||||
#else
|
||||
ret = timer_settime(pb_timer, TIMER_ABSTIME, &next, NULL);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user