aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Main.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 4b161fd6b..61e5fb2b6 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -596,6 +596,9 @@ int mpd_main(int argc, char *argv[])
#if defined(ENABLE_DATABASE) && defined(ENABLE_INOTIFY)
mpd_inotify_finish();
+
+ if (instance->update != nullptr)
+ instance->update->CancelAllAsync();
#endif
if (state_file != nullptr) {