From 3148ec82091cbcb078a3a5652e331a399fb06a88 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Fri, 30 Jul 2010 22:16:07 +0200 Subject: [PATCH] Stop command event and timer event (if running) at deinit --- src/player.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/player.c b/src/player.c index 541ab0da..353765e1 100644 --- a/src/player.c +++ b/src/player.c @@ -3282,6 +3282,11 @@ player_deinit(void) laudio_deinit(); raop_deinit(); + if (event_initialized(&pb_timer_ev)) + event_del(&pb_timer_ev); + + event_del(&cmdev); + #ifdef USE_EVENTFD close(exit_efd); close(cmd_efd);