mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-28 15:06:02 -05:00
Change MPD deinit position so it matches the init order, and so it will not get called if httpd fails to start
This commit is contained in:
parent
5125e24cfe
commit
ebba164a0d
13
src/main.c
13
src/main.c
@ -827,17 +827,16 @@ main(int argc, char **argv)
|
|||||||
remote_pairing_deinit();
|
remote_pairing_deinit();
|
||||||
|
|
||||||
remote_fail:
|
remote_fail:
|
||||||
|
#ifdef MPD
|
||||||
|
DPRINTF(E_LOG, L_MAIN, "MPD deinit\n");
|
||||||
|
mpd_deinit();
|
||||||
|
|
||||||
|
mpd_fail:
|
||||||
|
#endif
|
||||||
DPRINTF(E_LOG, L_MAIN, "HTTPd deinit\n");
|
DPRINTF(E_LOG, L_MAIN, "HTTPd deinit\n");
|
||||||
httpd_deinit();
|
httpd_deinit();
|
||||||
|
|
||||||
httpd_fail:
|
httpd_fail:
|
||||||
DPRINTF(E_LOG, L_MAIN, "TCPd deinit\n");
|
|
||||||
#ifdef MPD
|
|
||||||
DPRINTF(E_LOG, L_MAIN, "MPD deinit\n");
|
|
||||||
mpd_deinit();
|
|
||||||
mpd_fail:
|
|
||||||
#endif
|
|
||||||
|
|
||||||
DPRINTF(E_LOG, L_MAIN, "Player deinit\n");
|
DPRINTF(E_LOG, L_MAIN, "Player deinit\n");
|
||||||
player_deinit();
|
player_deinit();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user