Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mirall/folder.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mirall/folder.cpp b/src/mirall/folder.cpp
index 9cac3cf56..eb700e6ce 100644
--- a/src/mirall/folder.cpp
+++ b/src/mirall/folder.cpp
@@ -111,6 +111,7 @@ bool Folder::init()
}
return _csync_ctx;
}
+
Folder::~Folder()
{
if( _thread ) {
@@ -234,8 +235,9 @@ void Folder::slotPollTimerTimeout()
{
qDebug() << "* Polling" << alias() << "for changes. (time since next sync:" << (_timeSinceLastSync.elapsed() / 1000) << "s)";
- if (quint64(_timeSinceLastSync.elapsed()) > MirallConfigFile().forceSyncInterval()) {
- qDebug() << "* Force Sync now";
+ if (quint64(_timeSinceLastSync.elapsed()) > MirallConfigFile().forceSyncInterval() ||
+ _syncResult.status() != SyncResult::Success ) {
+ qDebug() << "** Force Sync now";
evaluateSync(QStringList());
} else {
RequestEtagJob* job = new RequestEtagJob(secondPath(), this);