diff options
author | Max Kellermann <max@duempel.org> | 2014-01-11 00:46:26 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-11 00:46:33 +0100 |
commit | 3f0415fa24efdb3b5c7df1acfa38cfe78b3a00a3 (patch) | |
tree | e7f84a924c53094094d7f5a76e435e27a11a46ab | |
parent | 348d0c944e92e8dfb361190b97a168f27a7333b8 (diff) | |
download | mpd-3f0415fa24efdb3b5c7df1acfa38cfe78b3a00a3.tar.gz mpd-3f0415fa24efdb3b5c7df1acfa38cfe78b3a00a3.tar.xz mpd-3f0415fa24efdb3b5c7df1acfa38cfe78b3a00a3.zip |
UpdateGlue: move stats_invalidate() call to Instance::DatabaseModified()
-rw-r--r-- | src/Instance.cxx | 2 | ||||
-rw-r--r-- | src/UpdateGlue.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx index a033ed82f..4fe399a2d 100644 --- a/src/Instance.cxx +++ b/src/Instance.cxx @@ -21,6 +21,7 @@ #include "Instance.hxx" #include "Partition.hxx" #include "Idle.hxx" +#include "Stats.hxx" void Instance::DeleteSong(const char *uri) @@ -31,6 +32,7 @@ Instance::DeleteSong(const char *uri) void Instance::DatabaseModified() { + stats_invalidate(); partition->DatabaseModified(); idle_add(IDLE_DATABASE); } diff --git a/src/UpdateGlue.cxx b/src/UpdateGlue.cxx index 52a5802ce..d2e9402bc 100644 --- a/src/UpdateGlue.cxx +++ b/src/UpdateGlue.cxx @@ -29,7 +29,6 @@ #include "GlobalEvents.hxx" #include "util/Error.hxx" #include "Log.hxx" -#include "Stats.hxx" #include "Main.hxx" #include "Instance.hxx" #include "system/FatalError.hxx" @@ -162,8 +161,6 @@ static void update_finished_event(void) spawn_update_task(std::move(i)); } else { progress = UPDATE_PROGRESS_IDLE; - - stats_invalidate(); } } |