diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-31 09:58:10 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-31 09:58:10 +0200 |
commit | 08c368700c57fc1214aab34a24c921756b3200f0 (patch) | |
tree | af741183ce958e9d2a50a44794a7c01ac1a731b2 /examples/maildirresource/maildirresource.cpp | |
parent | e59684844f819918f8720b466f31278d0ae0fa9b (diff) | |
download | sink-08c368700c57fc1214aab34a24c921756b3200f0.tar.gz sink-08c368700c57fc1214aab34a24c921756b3200f0.zip |
Cleanup
Diffstat (limited to 'examples/maildirresource/maildirresource.cpp')
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 67a2b43..ca20fa3 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -374,12 +374,10 @@ public: | |||
374 | { | 374 | { |
375 | Log() << " Synchronizing"; | 375 | Log() << " Synchronizing"; |
376 | return KAsync::start<void>([this]() { | 376 | return KAsync::start<void>([this]() { |
377 | { | 377 | synchronizeFolders(); |
378 | synchronizeFolders(); | 378 | //The next sync needs the folders available |
379 | //The next sync needs the folders available | 379 | commit(); |
380 | commit(); | 380 | commitSync(); |
381 | commitSync(); | ||
382 | } | ||
383 | for (const auto &folder : listAvailableFolders()) { | 381 | for (const auto &folder : listAvailableFolders()) { |
384 | synchronizeMails(folder); | 382 | synchronizeMails(folder); |
385 | //Don't let the transaction grow too much | 383 | //Don't let the transaction grow too much |