summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2015-11-06 13:33:07 +0100
committerMontel Laurent <[email protected]>2015-11-06 14:03:34 +0100
commita796059c7626e9e644e8f9b2bc02345d4cfeb8c0 (patch)
treef65693309ec04905cb8b6a3e54bb421efad96e57
parent239cec4cc87aef1d41a2a901191b4cf283741039 (diff)
Reduce number of timeout
-rw-r--r--pimsettingexporter/core/synchronizeresourcejob.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimsettingexporter/core/synchronizeresourcejob.cpp b/pimsettingexporter/core/synchronizeresourcejob.cpp
index e1b3f22..b72fea1 100644
--- a/pimsettingexporter/core/synchronizeresourcejob.cpp
+++ b/pimsettingexporter/core/synchronizeresourcejob.cpp
@@ -51,6 +51,7 @@ void SynchronizeResourceJob::slotNextSync()
const Akonadi::AgentInstance resource = Akonadi::AgentManager::self()->instance(mListResources.at(mIndex));
qCDebug(PIMSETTINGEXPORTERCORE_LOG) << " resource.name" << resource.name();
Akonadi::ResourceSynchronizationJob *job = new Akonadi::ResourceSynchronizationJob(resource);
+ job->setTimeoutCountLimit(10);
job->setCollectionTreeOnly(mOnlyCollection);
connect(job, &Akonadi::ResourceSynchronizationJob::result, this, &SynchronizeResourceJob::slotSynchronizationFinished);
job->start();