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

@@ -50,6 +50,10 @@ public:
bool Push(const char *path, bool discard, unsigned id);
UpdateQueueItem Pop();
void Clear() {
update_queue = decltype(update_queue)();
}
};
#endif