mirror of
https://github.com/owntone/owntone-server.git
synced 2025-05-01 15:41:25 -04: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;
|
static pthread_t tid_mpd;
|
||||||
|
|
||||||
struct event_base *evbase_mpd;
|
static struct event_base *evbase_mpd;
|
||||||
static int g_exit_pipe[2];
|
static int g_exit_pipe[2];
|
||||||
static struct event *g_exitev;
|
static struct event *g_exitev;
|
||||||
|
|
||||||
@ -4727,4 +4727,6 @@ void mpd_deinit(void)
|
|||||||
// Close pipes
|
// Close pipes
|
||||||
close(g_exit_pipe[0]);
|
close(g_exit_pipe[0]);
|
||||||
close(g_exit_pipe[1]);
|
close(g_exit_pipe[1]);
|
||||||
|
close(g_cmd_pipe[0]);
|
||||||
|
close(g_cmd_pipe[1]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user