Merge pull request #207 from chme/mpdclosecmdpipe
[mpd] Add missing close for command pipe on deinit
This commit is contained in:
commit
01f1a177b5
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue