From 373b444d83ad217574a738383fde9f9b36d89f7d Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 6 May 2016 20:40:44 +0200 Subject: Don't call setFinished twice setError already does that for us. --- common/store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/store.cpp b/common/store.cpp index 0ac99be..2ee6695 100644 --- a/common/store.cpp +++ b/common/store.cpp @@ -256,8 +256,8 @@ KAsync::Job> Store::fetch(const Sink::Query &que future.setError(1, "Not enough values."); } else { future.setValue(*list); + future.setFinished(); } - future.setFinished(); } }); } -- cgit v1.2.3