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:
ejurgensen 2015-09-29 23:14:44 +02:00
parent 5125e24cfe
commit ebba164a0d

View File

@ -827,17 +827,16 @@ main(int argc, char **argv)
remote_pairing_deinit();
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");
httpd_deinit();
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");
player_deinit();