From c1221c5c87dc6acbfd8d4a1b2d19c8aa576a8a64 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 29 Jan 2018 23:37:56 +0100 Subject: [PATCH] Main: cancel the update on shutdown even if inotify is unavailable Fixup for commit 681e012fb542ee1bb2ea5312dc673987a7a8ee29 --- src/Main.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Main.cxx b/src/Main.cxx index 5f151f5ab..043b316d8 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -643,8 +643,10 @@ try { /* cleanup */ -#if defined(ENABLE_DATABASE) && defined(ENABLE_INOTIFY) +#ifdef ENABLE_DATABASE +#ifdef ENABLE_INOTIFY mpd_inotify_finish(); +#endif if (instance->update != nullptr) instance->update->CancelAllAsync();