Merge pull request #207 from chme/mpdclosecmdpipe

[mpd] Add missing close for command pipe on deinit
This commit is contained in:
ejurgensen 2015-12-19 09:27:29 +01:00
commit 01f1a177b5
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,7 @@
static pthread_t tid_mpd;
struct event_base *evbase_mpd;
static struct event_base *evbase_mpd;
static int g_exit_pipe[2];
static struct event *g_exitev;
@ -4727,4 +4727,6 @@ void mpd_deinit(void)
// Close pipes
close(g_exit_pipe[0]);
close(g_exit_pipe[1]);
close(g_cmd_pipe[0]);
close(g_cmd_pipe[1]);
}