diff options
-rw-r--r-- | common/facade.h | 9 |
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 | } |