Do complete sync if network was disconnected.

This fixes owncloud/mirall#1007
This commit is contained in:
Klaas Freitag 2013-09-23 15:07:28 +02:00
parent 1eaa1e47fe
commit 1988c9d8c4

View file

@ -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);