summaryrefslogtreecommitdiffstats
path: root/common/facade.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-20 16:44:41 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-20 16:44:41 +0200
commitb6294ec95f4f459bc3cd5e1c9671d6329cac2b41 (patch)
tree93e0cc0f30e79c280d5157df176e97e67bcb50f4 /common/facade.h
parent7a456d8a8687d7a960c0f8c4bfb18eed3754404c (diff)
downloadsink-b6294ec95f4f459bc3cd5e1c9671d6329cac2b41.tar.gz
sink-b6294ec95f4f459bc3cd5e1c9671d6329cac2b41.zip
Cleanup
Diffstat (limited to 'common/facade.h')
-rw-r--r--common/facade.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/common/facade.h b/common/facade.h
index a0971a1..0ddc205 100644
--- a/common/facade.h
+++ b/common/facade.h
@@ -275,6 +275,9 @@ public:
275 runner->run().then<void>([&future]() { 275 runner->run().then<void>([&future]() {
276 future.setFinished(); 276 future.setFinished();
277 }).exec(); 277 }).exec();
278 },
279 [](int error, const QString &errorString) {
280 Warning() << "Error during sync " << error << errorString;
278 }); 281 });
279 } 282 }
280 283
@@ -285,11 +288,7 @@ protected:
285 //TODO Only sync what was requested 288 //TODO Only sync what was requested
286 //TODO timeout 289 //TODO timeout
287 if (sync || processAll) { 290 if (sync || processAll) {
288 return KAsync::start<void>([=](KAsync::Future<void> &future) { 291 return mResourceAccess->synchronizeResource(sync, processAll);
289 mResourceAccess->synchronizeResource(sync, processAll).then<void>([&future]() {
290 future.setFinished();
291 }).exec();
292 });
293 } 292 }
294 return KAsync::null<void>(); 293 return KAsync::null<void>();
295 } 294 }