db/update: cancel the update on shutdown

This commit is contained in:
Max Kellermann
2014-02-27 16:36:11 +01:00
parent 3be36643a1
commit 681e012fb5
7 changed files with 59 additions and 1 deletions

View File

@@ -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) {