diff options
author | Max Kellermann <max@duempel.org> | 2014-02-27 16:36:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-27 16:58:35 +0100 |
commit | 681e012fb542ee1bb2ea5312dc673987a7a8ee29 (patch) | |
tree | 2887e01d906c89f99516d67c555a2318473cc169 /src/db/update/Queue.hxx | |
parent | 3be36643a1bded02171d8ddaac7d7aecfdc1915a (diff) | |
download | mpd-681e012fb542ee1bb2ea5312dc673987a7a8ee29.tar.gz mpd-681e012fb542ee1bb2ea5312dc673987a7a8ee29.tar.xz mpd-681e012fb542ee1bb2ea5312dc673987a7a8ee29.zip |
db/update: cancel the update on shutdown
Diffstat (limited to '')
-rw-r--r-- | src/db/update/Queue.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/update/Queue.hxx b/src/db/update/Queue.hxx index a5b2aa9ac..eb0b268bf 100644 --- a/src/db/update/Queue.hxx +++ b/src/db/update/Queue.hxx @@ -50,6 +50,10 @@ public: bool Push(const char *path, bool discard, unsigned id); UpdateQueueItem Pop(); + + void Clear() { + update_queue = decltype(update_queue)(); + } }; #endif |