Main: cancel the update on shutdown even if inotify is unavailable

Fixup for commit 681e012fb5
This commit is contained in:
Max Kellermann 2018-01-29 23:37:56 +01:00
parent befd669075
commit c1221c5c87
1 changed files with 3 additions and 1 deletions

View File

@ -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();