mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 07:35:57 -05:00
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
Block a user