diff options
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 |