From 965df4fdfcd9a08623ebc8c2a8e61fd026484c41 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 28 Sep 2014 15:30:52 +0200 Subject: [PATCH] Delete event after disarming timer (maybe not necessary, but for safety) --- src/player.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/player.c b/src/player.c index c94086ed..180881d9 100644 --- a/src/player.c +++ b/src/player.c @@ -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