From 08c368700c57fc1214aab34a24c921756b3200f0 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 31 May 2016 09:58:10 +0200 Subject: Cleanup --- examples/maildirresource/maildirresource.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'examples') 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: { Log() << " Synchronizing"; return KAsync::start([this]() { - { - synchronizeFolders(); - //The next sync needs the folders available - commit(); - commitSync(); - } + synchronizeFolders(); + //The next sync needs the folders available + commit(); + commitSync(); for (const auto &folder : listAvailableFolders()) { synchronizeMails(folder); //Don't let the transaction grow too much -- cgit v1.2.3