Delete event after disarming timer (maybe not necessary, but for safety)

This commit is contained in:
ejurgensen 2014-09-28 15:30:52 +02:00
parent cf5b702460
commit 965df4fdfc

View File

@ -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