diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-07-27 02:26:47 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-09-15 16:14:19 +0200 |
commit | 26816c21f60450e461a5b6ef4ef740f6070ce278 (patch) | |
tree | 55e8aee03e094abf702438e6cd26233047345e70 /common/synchronizer.cpp | |
parent | 9a9bb39f7641a818434cafa0dae0c8aa47124c0b (diff) | |
download | sink-26816c21f60450e461a5b6ef4ef740f6070ce278.tar.gz sink-26816c21f60450e461a5b6ef4ef740f6070ce278.zip |
Ported to the kasync revamp
Diffstat (limited to 'common/synchronizer.cpp')
-rw-r--r-- | common/synchronizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/synchronizer.cpp b/common/synchronizer.cpp index 2d4fb8d..15a06e7 100644 --- a/common/synchronizer.cpp +++ b/common/synchronizer.cpp | |||
@@ -244,7 +244,7 @@ KAsync::Job<void> Synchronizer::synchronize() | |||
244 | SinkTrace() << "Synchronizing"; | 244 | SinkTrace() << "Synchronizing"; |
245 | mSyncInProgress = true; | 245 | mSyncInProgress = true; |
246 | mMessageQueue->startTransaction(); | 246 | mMessageQueue->startTransaction(); |
247 | return synchronizeWithSource().then<void>([this]() { | 247 | return synchronizeWithSource().syncThen<void>([this]() { |
248 | mSyncStore.clear(); | 248 | mSyncStore.clear(); |
249 | mEntityStore.clear(); | 249 | mEntityStore.clear(); |
250 | mMessageQueue->commit(); | 250 | mMessageQueue->commit(); |