From 681e012fb542ee1bb2ea5312dc673987a7a8ee29 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 27 Feb 2014 16:36:11 +0100 Subject: db/update: cancel the update on shutdown --- src/db/update/Walk.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/db/update/Walk.cxx') diff --git a/src/db/update/Walk.cxx b/src/db/update/Walk.cxx index c65480873..db05b1823 100644 --- a/src/db/update/Walk.cxx +++ b/src/db/update/Walk.cxx @@ -358,7 +358,7 @@ UpdateWalk::UpdateDirectory(Directory &directory, const FileInfo &info) PurgeDeletedFromDirectory(directory); const char *name_utf8; - while ((name_utf8 = reader->Read()) != nullptr) { + while (!cancel && (name_utf8 = reader->Read()) != nullptr) { if (skip_path(name_utf8)) continue; -- cgit v1.2.3