db/update: cancel the update on shutdown
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user